Cannot connect to WMI Provider & Invalid class [0x80041010]
数据库服务器(virtual machine)所在的nutanix一台主机由于故障,vm自动切换到另一台主机,切换过程中vm会重新启动,但是早上检查的时候,发现点击sql server configuration manager进去时报如下错误:
”cannot connect to wmi provider.you do not have permission or the server is unreachable.
note that you can only manage sql server 2005 and later servers with sql server configuration manager.
invalid class [0x80041010]”
不清楚什么原因导致这个错误出现,但是"sql server configuration manager" gives "invalid class [0x80041010]” when starting.这篇博客有提到如何解决这个问题,测试验证了一下,发现这个命令确能解决这个问题。如下所示:
c:\windows\system32>cd c:\program files (x86)\microsoft sql server\100\shared
c:\program files (x86)\microsoft sql server\100\shared>mofcomp sqlmgmproviderxps
p2up.mof
microsoft (r) mof compiler version 6.1.7600.16385
copyright (c) microsoft corp. 1997-2006. all rights reserved.
parsing mof file: sqlmgmproviderxpsp2up.mof
mof file has been successfully parsed
storing data in the repository...
done!
c:\program files (x86)\microsoft sql server\100\shared>
另外,不同版本的sql 数据库需要切换到到不同的目录,例如sql server 2014,需要切换到c:\program files (x86)\microsoft sql server\120\shared下面。一般需要根据具体情况酌情处理。
参考资料:
https://blogs.msdn.microsoft.com/spike/2012/03/19/sql-server-configuration-manager-gives-invalid-class-0x80041010-when-starting/