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"
关联自己的博客文章:
帐号密码修改后或者修改服务器名后,sharepoint要做的后续措施
http://fishvsfrog.blog.51cto.com/388027/1275144
本文转自 yuxye 51CTO博客,原文链接:http://blog.51cto.com/fishvsfrog/1435266