SYSUTCDATETIME()
and GETUTCDATE()
are two T-SQL date/time functions available for use in SQL Server. These functions return the date and time of the computer on which the instance of SQL Server is running. Both functions return the date and time as UTC time (Coordinated Universal Time).
So, both functions do the same thing. Almost.
Here’s how these two functions differ:
GETUTCDATE()
returns its value as a datetime value.SYSUTCDATETIME()
returns its value as a datetime2 value.
This means that SYSUTCDATETIME()
provides more seconds precision. The datetime2 data type also has a larger range than datetime.