I've found this
http://blogs.msdn.com/sushilc/archive/2004/10/14/242395.aspx but haven't tried.
Also
http://www.sqldbatips.com/showarticle.asp?ID=45>I know there was a thread on this 5 years ago but I the solutions presented there are not quite working for me.
>
>I need a means to enumerate and list all the SQL Server accessible to a machine. The solution I saw uses NetServerEnum() which I guess worked fine for SQL Server 2000 but it doesn't properly return names of servers + instances as used by SQL Server 2005.
>
>Any ideas?
>
>PS, I would prefer not to rely on any SQL Server functionality existing on the machine...
>
>Thanks in advance
If it's not broken, fix it until it is.
My Blog