Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does SQL Server tables have a Record #
Message
From
09/06/2005 10:52:35
 
 
To
09/06/2005 10:32:28
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01021779
Message ID:
01021802
Views:
14
Stephen,

>I wanted to view all the records in a table in the order that they were created in ? can you think of any way of doing this ?

Add a datetime-type field and populate it when adding records with the SQL Server GetDate() function. (You might think you could add the SQL Server Timestamp (auto-populated) field, but it gets changed every time the record is updated.)

Of course, if the data is already in the table, this idea won't help you. Bottom line is that you cannot count on SQL Server preserving any kind of record order, although it might look like that is the case when looking at the data via Query Analyzer.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Reply
Map
View

Click here to load this message in the networking platform