Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server 2022 (16.x)
Azure SQL Database
Azure SQL Managed Instance
This function returns the ID of the time zone observed by a server or an instance. For Azure SQL Managed Instance, return value is based on the time zone of the instance itself assigned during instance creation, not the time zone of the underlying operating system.
Note
For SQL Database time zone is always set to UTC and CURRENT_TIMEZONE_ID
returns the id of the UTC time zone.
CURRENT_TIMEZONE_ID ( )
This function takes no arguments.
varchar
CURRENT_TIMEZONE_ID
is a non-deterministic function. Views and expressions that reference this column cannot be indexed.
The value returned will reflect the actual time zone and language settings of the server or the instance.
SELECT CURRENT_TIMEZONE_ID();
/* Returned:
W. Europe Standard Time
*/
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today