Hi
I am trying to list all the instances of sqlserver using c++ in vs2005.
How to do this using smo library in c++? give me code example.
Thanks in advance..
Hi
I am trying to list all the instances of sqlserver using c++ in vs2005.
How to do this using smo library in c++? give me code example.
Thanks in advance..
Using the Windows Toolhelp API, you can enumerate the SQL Server processes, this without using the SQL API (which I didn't look).
Note that services run under the services.exe executable so if your server is running as service maybe you won't see it with this method.