sql server 2008 r2 wmi connection error [0x80041010] - sql

I am using sql server 2008 r2 and it was working fine but after restarting my computer it's not working , I tried to open configuration manager but it give me this error:
Cannot connect to WMI provider. You do not have permmission 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]
I tried this command:
mofcomp "%programfiles(x86)%\Microsoft\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"
but sqlmgmproviderxpsp2up.mof is not present in the shared folder and I don't know how to manage this error

Is that definatly the correct path:
For x64 :
mofcomp "%programfiles(x86)%\Microsoft\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"
For x86 :
mofcomp "%programfiles%\Microsoft\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"

Related

Error starting SQL Server configuration manager

Trying to open SQLSTD configuration file, but can't access it. Anything am doing wrong here? I have all the permission
Error message when you open SQL Server Configuration Manager in SQL Server: "Cannot connect to WMI provider. You do not have permission or the server is unreachable"
Please help
MS KB shows some cause and fixes as well
Cause:
This problem occurs because the WMI provider is removed when you uninstall an instance of SQL Server. The 32-bit instance and the 64-bit instance of SQL Server share the same WMI configuration file. This file is located in the %programfiles(x86)% folder.
Resolution:
run below commmand in command prompt
mofcomp "%programfiles(x86)%\Microsoft SQL Server\number\Shared\sqlmgmproviderxpsp2up.mof"
Your number depends on version you are using
Microsoft SQL Server 2012 110
Microsoft SQL Server 2008 R2 100
Microsoft SQL Server 2008 100
Microsoft SQL Server 2005 90
Re-installation of sql server worked for me

Cannot connect to wmi provider sql server 2012

The following error dialog pops up when I tried connecting to SQL Server Configuration Manager on my SQL Server 2012 production server:
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 [0x800700c1]
I've executed the following mofcomp command in command prompt to re-register the *.mof files:
mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"
The command was executed successfully, but I still have the same problem !
Thanks
Your directory is wrong (or you don't actually have SQL Server 2012). According to KB956013, if you're using SQL Server 2012, you need to be accessing the "110" folder. You are referencing the "100" folder.
Try this:
mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\110\Shared\sqlmgmproviderxpsp2up.mof"
and as Louie pointed out, don't forget to restart the WMI service.

can't connect to Sql Sever Management Express 2012

I installed Sql Sever Management Express 2012 , but when i try to connect in Sql management studio environment , i have this error .
ADDITIONAL INFORMATION:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476
The system cannot find the file specified
BUTTONS:
OK
and in during installation i dont have option for select cluster !!
this is my SQL Server Configuration Manager , my sql server service is empty ...
And when get Remove a Failover Cluster Node , this error happened .
http://oi57.tinypic.com/2lrvat.jpg
when i enter SQLEXPRESS , i have error
Cannot connect to SQLEXPRESS. ------------------------------
ADDITIONAL INFORMATION: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.
Verify that the instance name is correct and that SQL Server is configured to allow remote connections.
(provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53)
Viewing your linked images, is clear that you haven't installed or installed unsuccesfully,
Sql Server Express 2012
In your Configuration Server Manager there is no instancse of SQL Server so it is normal not been able to connect.
Q: Sine there is no instance,when you Launch Management Studio what instance name do you select when you try to connect???
You should properly install SQL Server Express 2012
EDIT :
First Check if you have any version of SQL Server or SQL Server Express installed on your machine...(this can be done by looking through installed programs from control panel)
In order to Install and configure SQL Express 2008 follow this steps
Take in mind that you have to use SQL Management Studio 2008 later on (if you have 2008 server)
Hope it helps...

Error while connecting to SQL Server Management Studio in server name

I am new to SQL Server. I have recently installed Microsoft SQL Server Management Studio on my computer. After starting the SQL Server Management Studio, I was asked to give a server name to connect to. I tried connecting it with .\SQLExpress but it is giving me the following error:
Cannot connect to .\SQLExpress
Additional infromation:
A network related or instance specific error occured while establishing a connection to SQL server.The server was not found or was not accessible.Verify that the instance name is correct ant that SQL Server is configured to allow remote connections(provider-SQL Network Interfaces,error:26-Error Locating Server/Instance Specified)(Microsoft SQL Server)
What should I do to get connected?

SQL Server Management Studio 2008 connects to SQL 2012 localdb

is it possible to use SQL Server Management Studio 2008 to connect to instances of SQL 2012 localdb?
I have installed the 2012 Native Client, which contains the ODBC driver, but I still can't seem to use the SSMS 2008 to connect to my localdb instance.
I have no problem using the sqlcmd to connect to the localdb, so it is not the server problem.
Thank you
You could do it via named pipes this way:
1 - Get the address of a (localdb) instance by running the following command: "C:\Program Files\Microsoft SQL Server\110\Tools\Binn\SqlLocalDB.exe" info [InstanceName] (if its the default instance you're interested in, specify v11.0 as the [InstanceName] You can write it in CMD to text file with the command:
"C:\Program Files\Microsoft SQL Server\110\Tools\Binn\SqlLocalDB.exe" info v11.0 > C:\db_details.txt
2 - Copy the "Instance pipe name" value, e.g. np:.\pipe\LOCALDB#1E0FF40B\tsql\query
3 - Paste the "Instance pipe name" value as the Server Name.
Install CU6 on system with SSMS 2008R2 as it contains some fixes related to compatibility issues with SQL Server 2012.
If you can see the 2012 server in your SSMS 2008R2 than you have connected it.
Open a new query window and execute the following code:
select ##version
try this :
ip Address\sqlserver2012 in the server name.
then set the Authentication method = SQL Server Authentication and provide thw login and password fields.