🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #2949

Re: Getting a list of tables from a database

#2949
From: In�s Fern�ndez
Date: Wed, 12 Feb 2003 17:01
22 lines
1498 bytes
Try this:

TStrings *tableList = new TStringList;
ADOConnection1->GetTableNames(tableList,false);

Ines

"Mike Knoblock" <mjk111@adelphia.net> escribi� en el mensaje
news:3e4a6e98$1@newsgroups.borland.com...
> This is not really ADO-specific, but does anyone know a quick way to get a
> list of tables in a database?
>
> I can use GetFieldNames() to get a list of fields from a table, but I want
> to iterate through a list of tables to get a complete database listing.
>
>
> TIA
>
>
> Mike
>
>
Technical Details
Message-ID: <3e4a7dfb@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3e4a6e98$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,90198c6b8705eec9
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-02-12 09:11:22 PST
From: "In�s Fern�ndez" <ifernandezmed@terra.es>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3e4a6e98$1@newsgroups.borland.com>
Subject: Re: Getting a list of tables from a database
Date: Wed, 12 Feb 2003 18:01:52 +0100
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 80.59.94.142
Message-ID: <3e4a7dfb@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1045069307 80.59.94.142 (12 Feb 2003 09:01:47 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail