i have the following code in a form load event, that (should) simply
populate a combobox with the names of all SQL servers on the network
Dim x As Long
Dim sqlNameList As SQLDMO.NameList
'Filling Servers Name
sqlNameList = sqlApp.ListAvai lableSQLServers
For x = 1 To sqlNameList.Cou nt
cbo_Server.Item s.Add(UCase(sql NameList.Item(x )))
Next
Me.Show()
but it falls over on the ListAvailableSe rvers, with the following error
"QueryInter face for interface SQLDMO.NameList failed."
im pretty new to this .net (vb6 previously) so i dont know what is wrong
any idea's??
Cheers,
Craig
populate a combobox with the names of all SQL servers on the network
Dim x As Long
Dim sqlNameList As SQLDMO.NameList
'Filling Servers Name
sqlNameList = sqlApp.ListAvai lableSQLServers
For x = 1 To sqlNameList.Cou nt
cbo_Server.Item s.Add(UCase(sql NameList.Item(x )))
Next
Me.Show()
but it falls over on the ListAvailableSe rvers, with the following error
"QueryInter face for interface SQLDMO.NameList failed."
im pretty new to this .net (vb6 previously) so i dont know what is wrong
any idea's??
Cheers,
Craig
Comment