The difference between sql server DateTime with the DateTime2

Finishing learn a little bit every day

DateTime field corresponding to the type of time format is yyyy-MM-dd HH: mm : ss.fff, 3 th f, accurate to 1 millisecond (ms), Example 2014-12-0317: 06: 15.433.
DateTime2 field corresponding to the type of time format is yyyy-MM-dd HH: mm : ss.fffffff, 7 th f, accurate to 0.1 microseconds (μs), Example 2014-12-0317: 23: 19.2880929.
If you are using SQL date functions assigned, DateTime field type to use GETDATE (), DateTime2 field type to use SYSDATETIME ().
datetime2 support datetime.minvalue, namely 0001/01/01

Reference: http://www.cnblogs.com/dudu/p/sql-server-datetime-vs-datetime2.html

Guess you like

Origin www.cnblogs.com/zsznh/p/11433725.html