🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

To use ODBC or ADO?

#485
From: Foo Tze Wan
Date: Wed, 17 Aug 2005 07:24
37 lines
2638 bytes
Hi all,

I am new to ADO. Over the past few days, I have read postings and helps on 
using ADO instead of ODBC.

I have a few questions here which I think they could probably have been 
asked many times, and I apologise for that.

I am currently working on InterBase with C++ Builder 6.0. I make use of 
TDatabase and TTables to establish an ODBC connection to the InterBase 
database.

In the future, my application is not just to connect to InterBase, but 
several other databases as well that are ODBC-compliant.

Though I am using ODBC now, after having read quite a few postings on ADO, I 
would like to explore if it is more viable to use ADO.

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?

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?

Thanks in advance,
Tze Wan
Technical Details
Message-ID: <4302e629@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!cyclone.bc.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,814166c1bc0fe9b5,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Foo Tze Wan" <twfoo@nospam.com>
From: "Foo Tze Wan" <twfoo@nospam.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: To use ODBC or ADO?
Date: Wed, 17 Aug 2005 15:24:33 +0800
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 210.24.189.100
Message-ID: <4302e629@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1124263465 210.24.189.100 (17 Aug 2005 00:24:25 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!cyclone.bc.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail