Getting List of Databases

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?
munchkin1234Asked:
Who is Participating?
 
jjbyersConnect With a Mentor Commented:
To get a list of databases on a SQL server do a select * FROM SysDatabases from the Master database on the server.
0
 
cognitionCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.