zoukankan      html  css  js  c++  java
  • 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]”

     

     

    clip_image001

     

     

     

    不清楚什么原因导致这个错误出现,但是"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>

     

    clip_image002

     

     

    另外,不同版本的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/

  • 相关阅读:
    一行code实现ADO.NET查询结果映射至实体对象。
    傻瓜式使用AutoFac
    Asp.Net MVC中捕捉错误路由并设置默认Not Found页面。
    asp.net MVC中实现调取web api
    JavaScript_11_验证
    JavaScript_10_错误
    JavaScript_9_循环
    JavaScript_8_比较,条件语句
    JavaScript_7_运算符
    JavaScript_6_函数
  • 原文地址:https://www.cnblogs.com/kerrycode/p/10172578.html
Copyright © 2011-2022 走看看