Undesired rounding of DateTime in SQL Server
问题 I ran into something that seems odd. SQL Server appears to be rounding some DateTime values inappropriately when I save them to datetime columns. I suspect I'm missing something, but I can't spot it. I'm running this test against SQL Server 2008 using .NET 4.0. The following should illustrate the issue: I have created a table in in SQL Server called Timestamps. It has two columns: id - bigint, Identity, PK timestamp - datetime I also created a simple test that does the following: Gets the