vb.net - Exception when starting SQL Server 2012 service from .NET code -


i'm attempting start sql server instance following code:

dim computer new managedcomputer dim pmsql serverinstance = computer.serverinstances("theinstance") 

when upgraded sql server 2012 gives following error:

sql server wmi provider not available on machinename.

with inner exception of:

invalid namespace

do need install additional on system? make sense worked pre-2012 not 2012?

edit: i'm using .dlls c:\program files\microsoft sql server\100\sdk.

it turns out app using dlls previous version of sql server. updated 2012 version , seems work well.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -