Thursday, September 16, 2004

Changing a SQL Server 'server' name after Computer Name has changed


sp_dropserver 'old SQL Server server name'
GO

sp_addserver 'new computer name', 'local'
GO

Stop and Restart SQL Server service

Now Run
SELECT @@SERVERNAME
to verify the changes

No comments: