标签:
执行以下脚本后, 重启SQL Server服务即可
if serverproperty(‘servername‘) <> @@servername
begin
declare @server sysname
set @server = @@servername
exec sp_dropserver @server = @server
set @server = cast(serverproperty(‘servername‘) as sysname)
exec sp_addserver @server = @server , @local = ‘LOCAL‘
end
标签:
原文地址:http://www.cnblogs.com/micolour/p/4828063.html