Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating precised timestamps
Message
 
To
01/09/2021 10:52:06
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01682235
Message ID:
01682236
Views:
72
This message has been marked as the solution to the initial question of the thread.
>I am trying to do this :
>
>
>UPDATE Projet SET DateMaximum='2021-07-31 23:59:59.999' WHERE ID=1
>
>
>I discovered that SQL Server saves it as 2021-08-01 00:00:00.000.
>
>If I use 998 milliseconds, it saves it as 2021-07-31 23:59:59.997'.
>
>All other values are working.
>
>Why it is that 998 and 999 milliseconds cause such a reactiom?

https://www.sqlshack.com/sql-server-datetime-data-type-considerations-and-limitations/
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform