Solved

Finding the list of available databases and tables in a database

Posted on 2000-03-29
4
152 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
[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
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month6 days, 11 hours left to enroll

636 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