1、确认SQL数据库实例服务器名和服务器名一致
use master
go
select @@servername
select serverproperty(‘servername‘)
------
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
ELSE
PRINT ‘实例名与主机名一致,无需修改!‘
参看文章:http://blog.csdn.net/leamonjxl/article/details/6674698
2、遇到报错
Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 servers with SQL Server Configuration Manager.
Invalid class [0x80041010]
解决办法:
使用管理员身份运行cmd命令C:\Program Files (x86)\Microsoft SQL Server\Shared>mofcomp "C:\Program Files\Microsoft SQL Server\Shared\sqlmgmproviderxpsp2up.mof"
本文出自 “fishvsfrog” 博客,请务必保留此出处http://fishvsfrog.blog.51cto.com/388027/1435266
修改服务器名后,sql server的配置处理,布布扣,bubuko.com
原文地址:http://fishvsfrog.blog.51cto.com/388027/1435266