Exception in SQL SMO service
-
יום שני 13 פברואר 2012 10:20
Code >>
ManagedComputer comp = new ManagedComputer(serverName, user, password); ServiceCollection servcoll = comp.Services; foreach (Service service in servcoll) { }
The exception is
An exception occurred in SMO while trying to manage a service.
I can see Protection fault on Server
Faulting application name: wmiprvse.exe, version: 6.1.7601.17514, time stamp: 0x4ce79d42
Faulting module name: svrenumapi100.dll, version: 2007.100.2531.0, time stamp: 0x49cfcbb5
Exception code: 0xc0000005Seems like permission issue. I have given the WMI permissions to the user. Still it is failing.
- נערך על-ידי Prasad Tendulkar יום שני 13 פברואר 2012 10:50
- הועבר על-ידי Paul Zhou יום שלישי 14 פברואר 2012 02:34 move for better support (From:Common Language Runtime)
כל התגובות
-
יום שלישי 14 פברואר 2012 12:28You may want to try restarting the WMI service. This can safely be done without rebooting the machine.
-
יום רביעי 15 פברואר 2012 07:18
Doesn't work. I have rebooted system multiple times.
I have actually installed SQL Server 2012 (the beta release) and trying to connect it through SMO. Is there a problem?
-
יום רביעי 15 פברואר 2012 21:25
I haven't tested 2012, I have however had some issues with WMI in pre Windows 2008 R2 SP1, where restarting the service fixed WMI issues.- הוצע כתשובה על-ידי Papy NormandModerator יום שישי 02 מרץ 2012 15:15
-
יום חמישי 17 מאי 2012 10:41
hi please check, this link may help you.
http://stackoverflow.com/questions/7521069/sql-azure-smo-exception-when-scripting-objects-in-ssms-2008-r2