Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I modify the time zone in Azure SQL Database?

Can you please tell me how to change the time zone in Azure SQL Database?

like image 856
Mukesh Avatar asked Jan 23 '18 07:01

Mukesh


People also ask

How do I change the time zone in SQL?

Changing the database timezone SQL Server users typically fetch the local timezone by using the GETDATE() function with insert/update statements or as a default constraint for a datetime column in a select statement.

How do I change the time zone on my Azure portal?

To do this, add an application setting (using the portal) called “WEBSITE_TIME_ZONE” equal to the name of the time zone in question (basically the same string as the key name at HKLM\Software\Microsoft\Windows Nt\CurrentVersion\Time Zones\). The list of time zone values is here.

How do I change my Azure SQL Database location?

In the Azure portal, search for resource mover. Then, under Services, select Azure Resource Mover. In Overview, click Get started. In Move resources > Source + destination, select the source subscription and region.


1 Answers

While you can't change the default time zone, Microsoft has provided mechanisms for dealing with time zones in your code within Azure. Read this article.

like image 200
Grant Fritchey Avatar answered Sep 21 '22 02:09

Grant Fritchey