Friday, 20 May 2011

Changing a SQL Server 2008 Instance Name

To change the name of a SQL server instance.

EXEC sp_dropserver 'oldname'
GO
EXEC sp_addserver 'newname', 'local'
GO

Now restart the mssqlserver service.

Check the servername using
SELECT @@servername

No comments:

Post a Comment