🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: To use ODBC or ADO?

#490
From: Viatcheslav V. Vassiliev
Date: Thu, 18 Aug 2005 06:49
71 lines
4129 bytes
> It always pulls all table records over to the client and does filtering 
> there.

TADOTable does not pull all records when used with CursorLocation = 
clUseServer. It may pull record handles, but not record data. Although using 
TADODataSet/TADOQuery is preferred for most DBMS, sometimes using TADOTable 
is justified.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + 
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Arnie" <none> �������/�������� � �������� ���������: 
news:43036726@newsgroups.borland.com...
> "Foo Tze Wan" <twfoo@nospam.com> wrote in message 
> news:4302e629@newsgroups.borland.com...
>> Hi all,
>>
> ... snip ...
>> 1) This is the most important question I would like to know:
>>
>> I would like to avoid the BDE. Using the TDatabase and TTables components 
>> as
>> of now, are they equivalent to saying that BDE is also implicitly being
>> used? The BCB help file mention the following for the TTable 
>> description -
>> "Use TTable to access data in a single database table using the Borland
>> Database Engine (BDE)".
>> Does it mean by using  TTables or even TDatabase, I would also need to
>> incorporate the BDE when the project is ready for deployment?
>
> Yes, TDatabase and friends are based on the BDE.  I would STRONGLY 
> recommend that you stay away from the BDE.  I would also recommend that 
> you stay away from xxxTable component.  It was originally used for file 
> based DBs such as DBase and should not be used with current DB servers. 
> It always pulls all table records over to the client and does filtering 
> there.  Using a WHERE clause in a SELECT statement allows the DB server to 
> do the filtering.  A TADOQuery or TADODataset is the way to go here. The 
> TADOQuery is fairly close to compatible to a TQuery.
>
>>
>> 2) The second question is: My application would still like to retain the
>> ODBC features in order to support databases that are ODBC-compliant. I 
>> think
>> I read in one of the postings that it may still be possible to use ODBC 
>> over
>> ADO (not sure if this is the correct term to use). I have not explored 
>> the
>> ADO components yet, but will try to do so. In the meantime, can I know if 
>> it
>> is advisable to use this concept of "ODBC over ADO" for my requirement?
>
> It's more like "ADO over ODBC", and yes, you can do it, though most will 
> recommend against it.  MS provides an OLEDB driver for "generic ODBC".  It 
> can be used with Borland's ADO.  You'd probably be better off using the 
> OLEDB provider supplied by the manufacturer if you support other DBs.
>
> If you go with ADO, you'll have to do sime fiddling with the query or 
> dataset properties in order to get good performance. These include cursor 
> location and type as well as locking mode and cache size.
>
>> Thanks in advance,
>> Tze Wan
>
> HTH,
> - Arnie
> 
Technical Details
Message-ID: <43042f6c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4302e629@newsgroups.borland.com> <43036726@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,814166c1bc0fe9b5
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <4302e629@newsgroups.borland.com> <43036726@newsgroups.borland.com>
Subject: Re: To use ODBC or ADO?
Date: Thu, 18 Aug 2005 10:49:28 +0400
Lines: 73
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 85.93.138.132
Message-ID: <43042f6c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1124347756 85.93.138.132 (17 Aug 2005 23:49:16 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail