9

I have read the document already but i do not fully understand The default precision is datetime2(7) is 7 represent the precision of nanosecond?

Sarawut Positwinyu
  • 4,974
  • 15
  • 54
  • 80

2 Answers2

12

No, the number represents the number of digits preserved after the decimal point for the seconds. 3 would be millisecond, 6 microsecond and 7 equivalent to a precision of 100 nanoseconds.

Martin Smith
  • 438,706
  • 87
  • 741
  • 845
7

The resolution of the default precision (7) datetime2 type is 100 nanoseconds.

An excellent reference for things date/time is : The ultimate guide to the datetime datatypes

Mitch Wheat
  • 295,962
  • 43
  • 465
  • 541