CURRENT_TIMESTAMP
nondeterministic time source
What changes
- Input
- system clock or time zone of the server
- Output or change
- current date/time value
- Return type
- datetime
Syntax at a glance
CURRENT_TIMESTAMP
Work example
Read the current SQL Server local timestamp for display or compatibility code.
Test month end, leap day, offset, and the session language that will run the query.
Check your work It returns datetime without an offset and is nondeterministic, so define UTC for stored events.
Open Microsoft Learn for full syntax, permissions, and details for your version.