SYSUTCDATETIME
nondeterministic time source
What changes
- Input
- system clock or time zone of the server
- Output or change
- current date/time value
- Return type
- datetime2
Syntax at a glance
SYSUTCDATETIME ( )
Work example
Capture a high-precision UTC timestamp when the application stores UTC values.
Keep the UTC convention in the column and API contract because datetime2 has no offset field.
Check your work SYSUTCDATETIME returns datetime2 with seven fractional-second digits and is nondeterministic.
Practice SQL
Open in SQL FlowSELECT SYSUTCDATETIME() AS utc_time;
Open Microsoft Learn for full syntax, permissions, and details for your version.