--===========================================================
--不能修改实例名称,但可以修改服务器名称
DECLARE @serverName NVARCHAR(200);
SELECT @serverName=@@SERVERNAME;
EXEC sp_dropserver @server = @serverName;
SET @serverName = CAST(SERVERPROPERTY('servername') AS sysname);
SELECT @serverName
EXEC sp_addserver @server=@serverName, @local='LOCAL';