T-SQL 101: 55 Current date and time values in SQL Server T-SQL

Finding out the current time is a really common requirement. But you also have to always consider whose concept of time you’re considering. Is the the time at the server, or the time where you are? (You might not be in the same place, or more importantly, the same timezone).
The function SYSDATETIME() returns the current system date and time right now at the server. The data type that’s returned is a datetime2. It’s the higher precision datetime data type that was introduced in SQL Server 2008.
2020-02-03

