May 27, 2004 at 10:02 pm
I have tried to adapt my VB6 code for DMO to list the servers on our network.
It fails when it hits the listavailableservers method with:
QueryInterface for interface SQLDMO.NameList failed.
This is my code:
Dim i As Integer
Dim oSQLApp As SQLDMO.Application
Dim oNames As SQLDMO.NameList
oSQLApp =
New SQLDMO.Application()
oNames = oSQLApp.ListAvailableSQLServers()
cmbServers.Items.Clear()
For i = 1 To oNames.Count
cmbServers.Items.Add(oNames.Item(i).ToString)
Next i
Any ideas please ???
Graham
May 31, 2004 at 8:00 am
This was removed by the editor as SPAM
June 3, 2004 at 3:21 pm
June 4, 2004 at 5:34 am
Hi Chiara.
Thanks for your reply
In the end I did the same as the first example. I took my class vrom VB6 and compiled it into a dll. I just would have liked a .NET solution more rather than using COM.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply