HiveBrain v1.2.0
Get Started
← Back to all entries
patternsqlMinor

Deprecating SQL Server, need to redirect clients to new server

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
newneedsqlclientsdeprecatingredirectserver

Problem

I am in the process of decommissioning an old SQL Server server and replacing it with a new server.

My old SQL Server is a named instance called: SQL\Development
My new SQL Server is a default instance called Sandbox

Is there a way on the server side to redirect clients from SQL\Development to Sandbox?

There are hundreds of clients and I am looking for the easiest way to accomplish this task.

Solution

We are doing exactly this at the moment in our company - decommisioning servers and moving the databases to a new infrastructure. We use a DNS alias to point to the SQL instance - the only downside is that the SQL instance must be configured to use static ports. Once this is done you can connect to a SQL instance using the following address: servername,port - this way you do not need to know the instance name. Once you have configured your application with to connect with the DNS alias moving your databases is easy - just create a copy of the database and change the IP Address that the DNS Alias points to.

There are a couple of downsides to this approach; firstly, configuring SQL Server to use static ports requires a restart of the SQL Server instance; secondly, all servers that are to take part in the moving of databases must be configured to use the same port (otherwise you would need to reconfigure the client each time).

We primarily use this for DR to be fair (although it is making the migration to new infrastructure easier) and the approach is pretty robust. When failover occurs an automated job kicks off to redirect all of the DNS Aliases to point to the new server. There will be a slight window of failure within the application while the new addresses are replicated across the domain controllers but this tends to be fairly small.

I hope this helps you.

Context

StackExchange Database Administrators Q#24809, answer score: 4

Revisions (0)

No revisions yet.