Pages

Search This Blog

Showing posts with label instance. Show all posts
Showing posts with label instance. Show all posts

Tuesday, October 25, 2011

[T-SQL] Change SQL Server instance name

EXEC sp_dropserver 'Old Server Name'
EXEC sp_addserver 'New Server Name','local'
GO

Then restart the SQL service and confirm the new server name with @@SERVERNAME.