Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best name for an 'item order' column?
Message
From
01/09/2008 03:02:59
 
 
To
01/09/2008 01:20:46
General information
Forum:
ASP.NET
Category:
Databases
Miscellaneous
Thread ID:
01343741
Message ID:
01343747
Views:
16
>I many of my parent-child table schemas, I have a column on the child table to indicate the "order" or "sequence" that the child record is in relative to the other child records of the same parent. It is an integer field and the first record is 1, then 2, then 3 etc.
>
>I have begun "upsizing' my databases from FoxPro to Sql Server, using the Upsizing Wizard in VFP9, and have tables where this field is named 'order', and it is getting named '[order]' when if gets pushed over.
>
>I want to rename it because I do not want my column names to have brackets around them.
>
>It's obvious why SQL Server needs to do this, but I just want advice or ideas on on choosing a smart name for this column. Surely everyone has similar structures in their data schemas.
>
>P.S. I also have the same problem for my columns named 'desc', which was intended to stand for 'description', but it is getting named '[DESC]'. For that one, I am planning to rename the column to 'description'.
>
>In VFP, these column names never caused my any problems, but as I prepare my data for life in the .NET and SQL Server world, I see that this needs to be addressed.
>
>So... suggestions for this column name please.

Seq, SortOrder, Ordinal (although this last one might be reserved in MS SQL Server, I don't know off-hand).

If this column represents the order in time in which the child items were entered, you could use a DateTime column (e.g. DateTimeCreated), rather than having to manage your current integer values.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform