Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtaining a higher precision in timestamp
Message
From
23/03/2014 07:43:15
 
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01597037
Message ID:
01597138
Views:
37
>>>Let me ask this - since you elected to go with the more precise datetime2 (down to nanosecond), is there an argument to be made that you're losing a tiny level of precision by assigning the mod date in the application layer with the VB DateTime.Now?
>>
>>It is for a single file that I am analyzing the log based on some isolated data gathering I wanted to log very fast. I am the only one analyzing it. So, when I went into SSMS, I was able to change the order by primary key to get that in the order it was created. The primary key will always be unique where the ModDate was not in that case as I was inserting records too fast.
>>
>>But, I wanted to open the door about the possibility of enhancing all those DateTime to DateTime2. But, for that, this requires some fine tuning in the code. There is also no guarantee that this would be able to accomplish if we switch into another development environment. But, as time goes by, such support would be better supported as is.
>
>I haven't followed this whole thread but given that the accuracy of DateTime.Now is probably about 10-15ms there doesn't seem much point in recording the value using a higher precision ?

counters with higher precision exist...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform