SQL Server has a bunch of functions that return the current date/time. Two of these are the GETDATE()
and SYSDATETIME()
functions.
At first glance, these two functions appear to do the same thing – get the current date and time from the operating system of the computer on which the instance of SQL Server is running.
However, there’s a subtle difference between the two.