Skip to content

Inserting fractional seconds into datetime2 columns #450

Discussion options

You must be logged in to vote

Hello @jamesetaylor-tudor ,

argument is bound with percision 7. This is also the maximum supported precision for datetime2 in an MSSQL Database. The timestamp fraction field is specified in nanoseconds (precision 9). So whatever number you put in there, at least its last two digits shoud end in 0. Fraction 1 would mean 1 nanosecond and not e.g. one tenth of a second.

Best, Markus

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jamesetaylor-tudor
Comment options

@pacman82
Comment options

Answer selected by jamesetaylor-tudor
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants