Accuracy of SYSDATETIME Data Type in SQL Server
问题 I have done some testing using the SYSDATETIME in stored procedure in SQL Server 2008. I have setup a table with a datetime2(7) with a IDENTITY field. I understand the difference between the precision and the accuracy of this data type however, I noticed an unusual result when inserting multiple records from this example: declare @counter int set @counter = 0 while @counter < 100000 begin set @counter = @counter + 1 INSERT INTO t ([now]) VALUES (SYSDATETIME()) end I looped through using an