Board index » delphi » Getting tables names from Servers

Getting tables names from Servers

Does anyone know a generic way to get a list of tablenames from a
Database, regardless of what kind of back-end? This should work on
anything from Paradox to Oracle.

Thanks in advance,

Kevin Willems

 

Re:Getting tables names from Servers


Quote
Kevin Willems wrote:

> Does anyone know a generic way to get a list of tablenames from a
> Database, regardless of what kind of back-end? This should work on
> anything from Paradox to Oracle.

> Thanks in advance,

> Kevin Willems

Hello,
  Use session.gettablenames (Delphi) or DbiOpenTableList (BDE API)

Scott
--
BDE Support:
 http://www.borland.com/devsupport/bde
Delphi Support:
 http://www.borland.com/devsupport/delphi
Common Delphi and BDE Questions and Answers:
 http://www.borland.com/devsupport/delphi/qanda/delphi3qa.html

Re:Getting tables names from Servers


Session.GetTableNames('DB', '',False, False, MyStringList);
where DB is the database name of your tdatabase component.

Quote
Kevin Willems wrote:
> Does anyone know a generic way to get a list of tablenames from a
> Database, regardless of what kind of back-end? This should work on
> anything from Paradox to Oracle.

> Thanks in advance,

> Kevin Willems

Re:Getting tables names from Servers


Quote
> Session.GetTableNames('DB', '',False, False, MyStringList);
> where DB is the database name of your tdatabase component.

Thanks. I knew it was probably something simple.

Kevin

Other Threads