🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Getting a list of tables from a database

#2952
From: In�s Fern�ndez
Date: Wed, 12 Feb 2003 18:13
46 lines
2190 bytes
Can't you use TDataBase's method "GetTableNames"?

Ines

"Mike Knoblock" <mjk111@adelphia.net> escribi� en el mensaje
news:3e4a8d04@newsgroups.borland.com...
> Yes; I saw your earlier post and tried this and it works fine for ADO
> connections. I need a method that includes ODBC-based TDataBase
connections,
> and I think that is a dead end.  Thanks for the reply.
>
> Mike
>
>
> "In�s Fern�ndez" <ifernandezmed@terra.es> wrote in message
> news:3e4a7dfb@newsgroups.borland.com...
> > 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: <3e4a8ed1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e4a6e98$1@newsgroups.borland.com> <3e4a7dfb@newsgroups.borland.com> <3e4a8d04@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 10:18:32 PST
From: "In�s Fern�ndez" <ifernandezmed@terra.es>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3e4a6e98$1@newsgroups.borland.com> <3e4a7dfb@newsgroups.borland.com> <3e4a8d04@newsgroups.borland.com>
Subject: Re: Getting a list of tables from a database
Date: Wed, 12 Feb 2003 19:13:44 +0100
Lines: 48
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: <3e4a8ed1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1045073617 80.59.94.142 (12 Feb 2003 10:13:37 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail