Loading lesson path
Concept visual
Start at both ends
Return the date and time of the SQL Server:
SELECT SYSDATETIME() AS SysDateTime;The SYSDATETIME() function returns the date and time of the computer where the SQL Server is running.
datetime2(7)
SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse
❮ SQL Server Functions