The only chance to set timezone is on instance creation only.
https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/timezones-overview
And make sure you select "SQL managed instance" instead of "Azure SQL".
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
experts, i would like to create a azure SQL DB with my local time, when i query select getdate() which need to return UTC+8 result. please provide me the guidance,
thanks.
The only chance to set timezone is on instance creation only.
https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/timezones-overview
And make sure you select "SQL managed instance" instead of "Azure SQL".
Hi @MrYian ,
maybe these links are helpful:
https://techcommunity.microsoft.com/t5/azure-database-support-blog/lesson-learned-4-modifying-the-default-time-zone-for-your-local/ba-p/368798
https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/timezones-overview
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
Use the function "AT TIME ZONE (Transact-SQL)" to convert UTC timestamp to your local time zone.
This is really and Azure question, not a SQL Server question.
All AzureSQL instances are set to UTC and cannot be changed.