Undesired rounding of DateTime in SQL Server

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

Leave a Comment