List availalbe SQL Servers?



I would need to find out the available SQL Servers (mainly 2005, but possibly 2000 as well, and definitely with 2008 in future) to be able to create and connect to a new database using a selectable database instance.

I tried to search for some hints, but mostly get only .NET stuff.

I found a reference to SQLDMO (http://www.delphi3000.com/articles/article_4052.asp?SK=), but it seems that support for that is about to be dropped, so I would prefer to use something that will also work with 2008 and later.

Also the code in the link seems to list servers only and does not find all available instances.

Any ideas?

BR,

Jouni Aro
Prosys
.