SQL Server SYSDATETIME() Function

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP







<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]
-->



SQL Server SYSDATETIME() Function




❮ SQL Server Functions



Example


Return the date and time of the SQL Server:



SELECT SYSDATETIME() AS SysDateTime;

Try it Yourself »


Definition and Usage


The SYSDATETIME() function returns the date and time of the computer where the SQL Server is running.



Syntax



SYSDATETIME()


Technical Details




Works in: SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data
Warehouse, Parallel Data Warehouse



❮ SQL Server Functions