PDA

View Full Version : Getting all tablenames from af DB


N/A
12-11-2000, 09:00 AM
Hi.

Does anyone know how to get all the tablenames from a DB?

I'm looking for a procedure like

Table1.GetFieldNames(ListBox1.Items);

- which put all the fieldnames from Table1 into ListBox1.

Mads

N/A
12-11-2000, 09:12 AM
This would differ depending upon the DBMS you are
using.

For instance, in SQLServer, you have to query the
system tables for all the tablenames.

You didn't say what DBMS you were using so we can't give you a reliable answer...

N/A
12-11-2000, 08:42 PM
Sorry.

I'm using MS Access '97.

Hope You can help.

Mads

N/A
12-20-2000, 06:21 AM
Try the mODBC component, it has a function like you want:

DataBase.GetTableName( ListBox1.Items );