Solved

Getting list of tables from a database

Posted on 2000-05-02
2
119 Views
Last Modified: 2010-04-04
How do I get the list of tables from a database?
0
Comment
Question by:bcoleman
[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 17

Accepted Solution

by:
inthe earned 50 total points
ID: 2770707
See the TSession.GetTableNames method. This method will fill a pre-existing string list object with the names of the tables in the database specified in the DatabaseName argument.
 
  Session.GetTableNames('DBDEMOS', '*.db', True, False, ListBox1.Items);
 
The DatabaseName property can be the name of a BDE alias, a string containing a driver/directory (local table types, only), or the value in the DatabaseName property of a properly connected TDatabase component.
0
 
LVL 1

Author Comment

by:bcoleman
ID: 2770863
Thanks for the help!!!
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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

734 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