Try this instead....
Dim sqlApp As New SQLDMO.Application
Dim NL As SQLDMO.NameList
Dim a As Integer
NL = sqlApp.ListAvailableSQLServers
For a = 1 To NL.Count
cboServers.Items.Add(NL.Item(a).ToString)
Next
(All I added was...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.