Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

How do you manage changing out a SQL Server and updating all the clients that connect to it to point to the new server? If I have SQLSERVER1, then buy new hardware and call the new server SQLSERVER2 and migrate all the databases over I have to change the ODBC connections on all the application servers, report servers, some workstations, etc to point to the new SQL Server instance.

Is there a way to point clients at an alias or proxy that points to the real SQL Server instance so it's not necessarily to update all the clients on a change?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

The easiest method should be to point all your clients to a certain DNS name when setting up connections. When you have to switch servers, you simply assign this DNS name to the new server.

In preparation for that, you could lower the TTL value for the DNS entry to a very small value so the change has a chance to propagate quickly.

share|improve this answer
    
I use this method all the time. –  joeqwerty Feb 28 '12 at 0:42
    
Thanks. Do you use CNAME records? Does it work if you have multiple instances on a server? –  Benjamin Bryan Feb 28 '12 at 1:00
    
CNAME or A doesn't matter. What do you mean with multiple instances? –  Sven Feb 28 '12 at 1:42
    
It does work with multiple instances, you just have to keep the instance name and/or port the same as on the old server. –  Jason Cumberland Feb 28 '12 at 14:33
    
Jason, If you are using named instances (not the default instance) the CNAME or A record only replaces the server name ("SQLSERVER1") in your example... not the instance name. The instance is not related to DNS. So, if you created a new CNAME called "SQLCNAME" for your "SQLSERVER2", the syntax would still be SQLCNAME\INSTANCENAME. DNS can only replace the machine name, not the instance. –  Chris Anton Mar 1 '12 at 3:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.