SQL Server Transact Basic to Expert - Returning the Current date

This blog shows how to get the current system date using a SQL query

Example:

SELECT 'CurrDateAndTime', SYSDATETIME()

The expected result would vary based on the time we execute the query

2011-03-03 10:10:12.0861608


Ebook Download
View all
Learn
View all