Precision of SQL Getdate?

前端 未结 2 888
执笔经年
执笔经年 2021-01-19 19:19

I am experimenting with a program that inserts data into an SQL 2005 Server database (on XP SP3) at high rate of speed. (This is for collecting timing data so I can evalua

2条回答
  •  旧时难觅i
    2021-01-19 19:40

    DATETIME has a precision of 3.3ms, but GETDATE() does not return times accurate to this as you've discovered. Check out the MSDN page for date/time types/functions for more info on how the new types / functions work.

提交回复
热议问题