Solved

Getting List of Databases

Posted on 1999-01-11
2
142 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
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…

739 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