Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
High precision date/time stamp in SQL Server 2005
Message
General information
Forum:
Microsoft SQL Server
Category:
Database design
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01503716
Message ID:
01503730
Views:
32
>>>>I have bulk records that are getting imported into a SQL Server 2005 table. I need to be able to maintain the same order that they were imported. I was using a DateTime field and populating it to GETDATE(), but that wasn't precise enough.
>>>>
>>>>Any advice out there?
>>>
>>>In SQL Server 2005 there is no date types with high precision. There are several in SQL Server 2008 (DateTime2).
>>
>>Any other ideas? I received a recommendation elsewhere to rely on the autoincrementing identity column, but I've always believed that to be bad practice.
>
>Why bad practice?
>
>I use identity columns for almost (like 98%) every SQL table I design. Works great and takes the guesswork out.

I think I didn't read the original question in details. I agree, using identity column to maintain the order seems like a simple thing.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform