I want to programmatically enumerate the SQL Server 2005 named instances on a server. I know I should be able to do this fairly easily, but I can’t for the life of me figure out how. Thanks in advance for any help!
I want to programmatically enumerate the SQL Server 2005 named instances on a server.
Share
Here is what I had written a while ago…This is not exactly the same but it may give you an idea on how to do it. Here I am enumerating and checking for the express edition of the sql server, but you should be able to change that…You will need to go to the registry to find the SKUNAME and SKULEVEL of the sql server 2005.