I'm using SQL Server 2008 R2.
Using SQL Server Management Studio, I've created a database, and a new table.
In the table I have 2 columns with data types Time(0)
and Datetime2(0)
.
I've inserted a record in this table with values :
12:50:34...........2015-02-02 12:50:34
But when this record is saved , the values are like below :
12:50:34...........2015-02-02 12:50:34.0000000
This is the image inside SQl Server management studio :
So the Time(0)
column's value remain as I have typed. But the Datetime2(0)
column's value has those 0 at the end.
Why does the DateTime2(0)
column's value change?