Solved

Getting List of Databases

Posted on 1999-01-11
2
137 Views
Last Modified: 2010-05-03
I need to get a list of databases available on a server selected from a listbox (this is filled from the registry).  I have tried the ODBC32 function SQLBrowseConnect, but have been unable to get it to work.  All code samples I've seen are in C.  What's the best way to get this?
0
Comment
Question by:munchkin1234
2 Comments
 
LVL 3

Expert Comment

by:cognition
ID: 1455369
What database is on the server. Or is it just a list of access mdb's stored in the registry ?

Do you want to populate a listbox, from the registry ?
0
 
LVL 3

Accepted Solution

by:
jjbyers earned 200 total points
ID: 1455370
To get a list of databases on a SQL server do a select * FROM SysDatabases from the Master database on the server.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question