Datetime is only accurate to 3ms. Therefore it’ll round to the nearest multiple of 3ms. To overcome this, look at the datetime2. Note that this is for SQL2008+ only
EDIT: it’s not quite only to 3ms. It’s rounded to increments of of .000, .003, or .007 seconds
More Related Contents:
- SQL Server Group by Count of DateTime Per Hour?
- Sql Server string to date conversion
- How to get a float result by dividing two integer values using T-SQL?
- How to convert SQL Server’s timestamp column to datetime format
- How can I truncate a datetime in SQL Server?
- What is the significance of 1/1/1753 in SQL Server?
- How to get Time from DateTime format in SQL?
- How to get first and last day of previous month (with timestamp) in SQL Server
- How to remove the time portion of a datetime value (SQL Server)?
- SQL – The conversion of a varchar data type to a datetime data type resulted in an out-of-range value
- Date conversion and culture: Difference between DATE and DATETIME
- SQL Query to find the last day of the month
- Handling date in SQL Server
- How can I get the sum of multiple datetime values?
- Comparing dates stored as varchar
- Add default value of datetime field in SQL Server to a timestamp
- Best way to store time (hh:mm) in a database
- Retrieving the date in SQL Server; CURRENT_TIMESTAMP vs GetDate()
- Why SQL Server DATETIME type saves time in ticks of 1/300 of a sec?
- SQL Server: convert ((int)year,(int)month,(int)day) to Datetime [duplicate]
- Convert a string with ‘YYYYMMDDHHMMSS’ format to datetime
- Convert UTC Milliseconds to DATETIME in SQL server
- How does SQL Server decide format for implicit datetime conversion?
- How to convert text column to datetime in SQL
- How to calculate difference in hours (decimal) between two dates in SQL Server?
- Storing files in SQL Server
- Dapper.NET and stored proc with multiple result sets
- T-SQL Dynamic SQL and Temp Tables
- SqlDateTime.MinValue != DateTime.MinValue, why?
- Set database collation in Entity Framework Code-First Initializer