Reputation: 224
I want to move a SQL database to a new region. A bit of downtime is okay.
One hard requirement is that the SQL Server name stays the same, are there are several places that the connection string is in use.
With FailOver I believe the server name doesn't change after failing over to the new region.
However once I remove the failover and delete the old SQL Server I expect that this will no longer be that case
Migrate Azure database server/database different region
https://learn.microsoft.com/en-us/azure/azure-sql/database/move-resources-across-regions
The other option, Is to create a SQL Server alias https://learn.microsoft.com/en-us/azure/azure-sql/database/dns-alias-overview and slowly migrate all connections to the alias
Upvotes: 0
Views: 633
Reputation: 1450
The DNS alias acts as a translation layer, allowing your client programme to be redirected to multiple servers. This layer eliminates the hassle of having to locate and edit all of the clients’ connection strings.
Limitations:
Upvotes: 1