Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Finding the list of available databases and tables in a database

Posted on 2000-03-29
4
Medium Priority
?
156 Views
Last Modified: 2010-04-04
Does anyone have some code on how to get a list of available databases and then a list of the available tables in each database?
0
Comment
Question by:phillip1
4 Comments
 
LVL 2

Expert Comment

by:NetoMan
ID: 2666578
what kind of databases are you using (Oracle / MSAcces / SQLServer ) ?


0
 
LVL 6

Expert Comment

by:DrDelphi
ID: 2666627
You mean other than Database Explorer?
0
 
LVL 13

Accepted Solution

by:
Epsylon earned 800 total points
ID: 2667093
Use a TSession component:

  Session1.SessionName := 'somename';
  Session1.GetAliasNames(ListBox1.Items);
  Session1.GetTableNames('DBDEMOS', '*.db',False, False, ListBox2.Items);


Cheers,

Epsylon.
0
 

Author Comment

by:phillip1
ID: 2669746
Works perfectly.  You're a genius.  Thanks,
Phil
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Screencast - Getting to Know the Pipeline
Suggested Courses

971 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