Re:Newbie Question on ADO.
Quote
> 1) What is necessary in replacing the TDatabase -> TQuery
> -> TDataSourse with ADO access? Can we just replace the
> TDatabase, or do we need to replace all the TQuery's also?
> If so, is there any way to automate this?
You'll need to replace the TDatabase with a TADOConnection and all of the
TQuery components with TADOQuery components. It's not hard to do by hand
(search and replace in the PAS and DFM files). You can also use GExperts
which has a component search and replace feature.
Quote
> 2) Does Interbase support ADO? If not, is there an easy way
> to switch between an ADO data source and a BDE one. (I.e.
> if the DBE is install everything use BDE, else everything use
> ADO?)
Interbase does not have an OLE DB provider yet (as far as I know) so you'd
have to go ADO -> ODBC -> Interbase. I wouldn't try to write a mixed
BDE/ADO application although it's certainly possible. Also, keep in mind
that a lot of people who don't like the idea of installing ADO probably
already have it. Windows 2000 includes ADO an if you've installed anything
from Microsoft lately you probably have it.
Quote
> 3) What is performance like? I've heard mixed reviews on the
> BDE, but I've found it light-and-day ahead of ODBC. On ADO
> I've also heard mixed reviews.
Some people think ADO is way faster, some think it's way slower. Because of
the way you've written your application it should be fairly easy to just
convert to ADO and see what you think.
Quote
> 4) Can you still access ODBC data sources without the BDE
> installed, or do you need 3rd-party software?
Yes. ADO supports ODBC connections.
Quote
> 5) Can you still access dBase files or do you have to use
> ADO or ODBC?
For dBase and Paradox you pretty much still need the BDE (I've never used
either so I'm not sure).
-Mike