Avatar of Steve Bohler
Steve Bohler
Flag for United States of America

asked on 

SQL Server Identify field order issue

Hello,

Running SQL Server and have a table with several fields, including a RecordID (identity) primary key field, some other info, and a DateStamp field.

The RecordID field is set to autoincrement by 1.
The DateStamp field is given a default value of the current date/time (getdate())

I have some examples where, if I query the table by order of RecordID, it doesn't match always the order of the DateStamp field. By my understanding, the RecordID field should match the chronological order of the DateStamp field, as the RecordID field increments by 1 for each new record.

Are there any known situations where this might occur?
Microsoft SQL ServerSQL

Avatar of undefined
Last Comment
Steve Bohler

8/22/2022 - Mon