🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Getting a list of tables from a database

#2950
From: Mike Knoblock
Date: Wed, 12 Feb 2003 18:05
35 lines
1885 bytes
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: <3e4a8d04@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!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> <3e4a7dfb@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:10:49 PST
From: "Mike Knoblock" <mjk111@adelphia.net>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3e4a6e98$1@newsgroups.borland.com> <3e4a7dfb@newsgroups.borland.com>
Subject: Re: Getting a list of tables from a database
Date: Wed, 12 Feb 2003 13:05:57 -0500
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: 68.69.217.94
Message-ID: <3e4a8d04@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1045073156 68.69.217.94 (12 Feb 2003 10:05:56 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!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