Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Offset by one millisecond
Message
From
19/09/2010 17:05:07
 
 
To
19/09/2010 14:45:10
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01481850
Message ID:
01481884
Views:
25
>All this seems to be normal. For some kind of reason, someone decided to only allow an accuracy of 3.33ms whenever we store a datetime with milliseconds. Basically, when I did some tests, for some records it was OK. For some others, it wasn't. If you go in SSMS and force the assignation of a datetime value with milliseconds, after a few tests, you will see that SQL Server decides by itself how much it will change your value.
>
>SQL Server 2008 comes up with a DateTime2 format which allows a precision of up to 100ns. But, the client still has SQL Server 2005.
>
>The recommended approach is to break the field in two, thus to save the milliseconds in a secondary field with Numeric 3.

Or add QueryPerformace-Routines into the fray...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform