Uneven Technology
Wednesday, July 24, 2013
MSSQL - Changing Computer Name
SELECT
@@SERVERNAME
-- check current servername;
-- restart sql service after name change
EXEC
sp_dropserver
'OldComputerName'
;
-- remove old server name
EXEC
sp_addserver
'NewComputerName'
,
local
;
-- add new server name
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment