Enumerate SQL Servers URGENT????

  • Thread starter Thread starter CJ Taylor
  • Start date Start date
Does anyone know where a working vb.net sample of this functionality may be
found?

Thanks in advance.
 
Hi,

Add a reference to microsoft sqldmo object library in the com
tab.

Dim sqlServers As SQLDMO.NameList

Dim sqlServer As String

' Get a list of servers

sqlServers = New SQLDMO.Application().ListAvailableSQLServers

For Each sqlServer In sqlServers

Debug.WriteLine(sqlServer)

Next



Ken

-----------------------------

Does anyone know where a working vb.net sample of this functionality may be
found?

Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top