🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: List of tables from a ADODataset

#1382
From: Angel
Date: Fri, 30 Jul 2004 11:00
23 lines
1697 bytes
Neil wrote:

> "Angel" <user@example.net> wrote in message
> news:4108afdf$1@newsgroups.borland.com...
> 
>>My question is: is there any similar way to get a list of the tables or
>>views from an ADODataset or an ADOQuery,
> 
> 
> Look at the GetTableNames method of TADOConnection
> 
>


It's no use, because GetTableNames returns ALL the tables in a database 
and I only want the tables and/or views used in the SQL sentence of an 
ADODataset or an ADOQuery.

I have been told to use the dynamic property named "BASETABLENAME" but I 
think that some OLEDB providers doesn't give access to it, so I think 
i'll have to parse the SQL text.

Anyway, thank you for your answer.
Technical Details
Message-ID: <410a2a55$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4108afdf$1@newsgroups.borland.com> <4109ecdc@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,30a6e87861e5a462
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 30 Jul 2004 13:00:00 +0200
From: Angel <user@example.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: List of tables from a ADODataset
References: <4108afdf$1@newsgroups.borland.com> <4109ecdc@newsgroups.borland.com>
In-Reply-To: <4109ecdc@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 213.37.37.240
Message-ID: <410a2a55$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1091185237 213.37.37.240 (30 Jul 2004 04:00:37 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail