Troubleshooting host name changes. When the machine name is changed where we have installed SQL Server, all the instances services are started but replication, Jobs, Alerts, Maintenance plans causes errors. Hence we have to rename the instance.
To rename instance we can use the following SP
1. Check the old server name as follows
1 |
SELECT@@servername |
2. Drop the server and add the new server name
1 |
SP_DROPSERVER <oldName> |
1 |
SP_ADDSERVER <newName>, local |
3. Restart the instance
4. Check the server name again
1 |
SELECT @@servername |
There are a few potential impacts to consider when changing the name of a SQL Server instance:
It is a good idea to carefully plan and test the impact of changing the instance name before making the change in a production environment.