I am working with the latest version of Azure SQL. I have a series of Time zone display name
and want to convert those into Time zone ID
. I know SQL server contains both the display name and the id. sys.time_zone_info
has all the Time zone ID
, but commands like CURRENT_TIMEZONE ()
output Time zone display name
. What I am hoping for is a simple function that takes a string Time zone display name
and returns the Time zone ID
that name maps to, but I can't find any reference to that. And I can't find a table that actually stores the mapping.
Reference - Time zones in Azure SQL Managed Instance