--Show Current Server Name
SELECT @@SERVERNAME AS 'Server Name';
--Change Name
EXEC sp_dropserver '<old_name>';
GO
EXEC sp_addserver '<new_name>', local;
GO
--Restart Instance
--Show Current Server Name
SELECT @@SERVERNAME AS 'Server Name';
--Change Name
EXEC sp_dropserver '<old_name>';
GO
EXEC sp_addserver '<new_name>', local;
GO
--Restart Instance
Leave a Reply