数据库服务器(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:Windowssystem32>cd C:Program Files (x86)Microsoft SQL Server100Shared
C:Program Files (x86)Microsoft SQL Server100Shared>mofcomp sqlmgmproviderxpsp2up.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 Server100Shared>
另外,不同版本的SQL 数据库需要切换到到不同的目录,例如SQL Server 2014,需要切换到C:Program Files (x86)Microsoft SQL Server120Shared下面。一般需要根据具体情况酌情处理。
参考资料:
https://blogs.msdn.microsoft.com/spike/2012/03/19/sql-server-configuration-manager-gives-invalid-class-0x80041010-when-starting/