Solved

Getting List of Databases

Posted on 1999-01-11
2
134 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now