4、ctserverproperty('servername') ifserverproperty('servername')<>@@servername begin declare@serversysname set@server=@@servername execsp_dropserver@server=@server set@server=cast(serverproperty('servername')assysname) execsp_addserver@server=@server,@local='LOCAL' end ②:如果你使用的是