
If you have any remote logins, that reference the old server name, you will receive an error when you try to change the server name. Changing the Server Nameįirst you are going to want to check if there are any remote logins. Now that that is all out of the way, let’s get to actually changing our server name.
SERVERNAME SQL SERVER UPDATE
You would need to update the Windows group after the name change to specify the new server name. This occurs if the Windows group specifies the old computer name. Metadata for mirroring foes not update automatically.Windows groups – If using a hard-coded reference to the server name. Then once renamed you will need to re-establish the mirror using the new server name. Details can be found in MSDN here: Rename a Report Server Computer.Database Mirroring – Mirroring needs to be turned off prior to changing the server name. To fix this you need to edit the nfig file in a couple of ways. You can get more info on this scenario in the MSDN library here: Log Shipping and Replication (SQL Server) Reporting Services – After a rename, reporting services may not be available. If you are using log shipping with replication and you completely lose the primary, you can rename the secondary. Be sure to script out all your settings first so you can more easily rebuild it after the server name change. You need to remove replication for the change to be able to be done. Replication – renaming computers involved in replication, except for log shipping with replication, as not supported. There are a few exceptions to remain aware of when you are looking to rename a SQL Server: Fail-over Clusters – When as instance is part of a SQL Server fail-over cluster, the renaming process outlined here will not work. Production and development system were affected and needless to say it made for a fun week to get everything fixed as fast as possible. Turns out that the detailed checklist for the data center move, including renaming the servers, had left out the critical step of resetting the server name on each SQL Server. I came onto the project after the move had been done and it took a while to realize that a lot of maintenance plans were failing. We are talking thousands of servers moved, and every one of them renamed. I experienced it with one client that physically moved data centers, and in the process decided they wanted to change the IP address and name for every server. How does these names get out of sync? Usually is is from some sort of move or rebuild of a server. Generally chaos can happen, but not always right away. Reporting services can break, Connections denied, maintenance plans fail. When the name of the actual host machine’s server name does not match the server name stored in SQL Server a lot of things can start to go wrong. Is the name of your SQL Server correct? Why Worry About The Server Name In SQL?
