|
-
Jun 17th, 2002, 07:55 AM
#1
Sql Server and Database Listing
Does anyone know how to get a list of Sql Server's using VB.NET.
Also once a user selects a particular server to give a list of databases.
Cheers
-
Sep 12th, 2002, 10:14 AM
#2
Member
hmmm...
Any idea on this one yet... this is my question also 
Thanks,
Jon
-
Dec 12th, 2002, 05:08 PM
#3
Member
Hi,
Add a reference to SQL DMO
Dim oApp As SQLDMO.Application
Dim oNames As SQLDMO.NameList
oApp = New SQLDMO.Application()
oNames = oApp.ListAvailableSQLServers
Dim i As Integer
For i = 1 To oNames.Count
Me.cboServerName.Items.Add(oNames.Item(i))
Next
-
Dec 19th, 2002, 08:50 PM
#4
Member
Sorry for my interruption, actually i am looking for this as well. i have try the posted code but i get the following error message...
QueryInterface for interface SQLDMO.NameList failed.
do you have any idea about this?
-
Dec 19th, 2002, 09:28 PM
#5
Member
Hi,
You will probably need the latest version of sqldmo.dll. I guess if you update/install MS SQL Client Tools it should work.
-
Dec 19th, 2002, 09:58 PM
#6
Member
Hi! thanks for your reply... but where can i find the update?
-
Dec 19th, 2002, 10:01 PM
#7
Member
Mmmm,
The Microsoft SQL Server website would be a good start.
We downloaded it ages ago and keep a copy of the file laying around...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|