sef sef - 2 months ago 5
SQL Question

Get list of available servers in SQL server group

How can I extract the list of available SQL servers in an SQL server group? I'm planning to put that list in a combo box in VB.NET.

Answer

The only way I knew to do it was using the command line:

osql -L

But I found the below article which seems to solve your specific goal filling a combobox:

http://www.sqldbatips.com/showarticle.asp?ID=45