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.
Related
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
I have an SSIS job that contains a WMI File Watcher task, which monitors a folder on another machine and processes files as they are placed in the folder.
This job, including the WMI File Watcher task, works perfectly in SSIS. However, when the same package is executed through the SQL Server Agent it returns with a status of successful but does not process the file.
Is there anything that needs to be configured through the SQL Server to allow the WMI File Watcher task to see the incoming file?
Any help would be greatly appreciated, thanks for your time.
Misc. Details:
The package is setup with a protection level of EncryptSensitiveWithPassword
The WMI File Watcher task has valid credentials with access to the remote machine
The Server environment is: SQL Server 2008 R2 on Windows Server 2008 R2
The Remote Machine is running Windows XP
try running the sql server as administrator
start->sql server->right click->run as admin
Or
restart the sql server agent
run->services.msc->sql server agent->restart
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.
Yesterday I installed SQL Server 2008 on my laptop (Windows 7 64 bit), I need to attach a .mdf to the server, but when I try to do this, I get this error:
Attach Database failed for server 'prince/sqlexpress' (Microsoft.SqlServer.smo)
ADDITIONAL INFORMATION:
1.An Exception Occured while executing a Transact Sql statement or Batch (Microsoft.SqlServer.connectioninfo)
2.Unable to open the Physical file Operating system error 5: "5(Access is denied.)". (Microsoft SQL Server, Error: 5120)
With the help of Internet, I found some solution.
1.Start SQL Server manager as Administrator (right-click on the program, choose "Start as administrator"):
But I still got the same error.
That .mdf file does have have permission, so I moved into external drive (pendrive because my system have only C:\ drive, yet no partition I have done ) .
Then I got another error,
Attach database failed for Server 'Prince\SQLEXPRESS'.
(Microsoft.SqlServer.Smo) ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or
batch. (Microsoft.SqlServer.ConnectionInfo)
The database 'Databasename' cannot be opened because it is version
655. This server supports version 611 and earlier. A downgrade path is not supported. Could not open new database 'Databasename'. CREATE
DATABASE is aborted. (Microsoft SQL Server, Error: 948)
I use the Query -
"select ##version;"
I got the Output as
"Microsoft SQL Server 2005 - 9.00.3042.00 (Intel X86) Feb 9 2007
22:47:07 Copyright (c) 1988-2005 Microsoft Corporation Express Edition
on Windows NT 6.1 (Build 7600: )"
what shall i do? But i installed SQL Server 2008. how do i change that?
How to solve this error, please help out this problem, If you have any solution please post it.
The message is very clear: the database MDF file is version 655. Your server understands version 611. Which means, despite to your claim to the contrary, that you are connected to a SQL Server 2005. Install a SQL Server 2008, connect to it, and attach your database. Please pay attention during the installation process to the instance name you choose and make sure you connect to that instance. You can also check now what instances you have installed, look at what services you have on your system. MSSQLSERVER will be the default instance, MSSQL$<instancename> will be a named instance. Use any SCM query tool to see what services you have installed, eg. sc.exe.
Microsoft SQL Server Management Studio needs Administrator rights to attach database in Windows 7. If you execute it directly so you will get the error 5120. Fix this executing Management Studio icon using the right mouse button and selecting execute as administrator. Good luck.
Finally I Solved My Problem,
Stop the SQLEXPRESS service and Uninstall all the Components related to SQL server 2005.
Then Open the registry Editor Go to HKEY_LOCAL_MACHINE--SOFTWARE--MICROSOFT--MICROSOFT SQL SERVER-DELETE the folder 90. Then again reinstall SQL Server 2008 and create new instanse for 2008 server. Now its working, I m able to Attach the mdf file.
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"