Solved

Finding the list of available databases and tables in a database

Posted on 2000-03-29
4
148 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 200 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

821 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