Subject Re: [IBO] Difference between IBODatabase and IB_Connection
Author Helen Borrie
At 11:30 AM 14/09/2004 +0100, you wrote:
>I am converting a BDE Application and I am using IB_Connection
>with IBOQuery and I'd like know difference between IBODatabase and
>IB_Connection and which of two connection is best from my application with
>TDataset components.

TIBODatabase is conceptually similar to TDatabase, in that it encapsulates
one connection and one transaction. You control this transaction from the
TIBODatabase object. However, TIBODatabase is also wrapped around a

TIB_Connection does not wrap a hidden transaction, although it will create
one internally if you did not explicitly create one in your application.

Coming from the BDE, the TIBODatabase might be more useful to you,
initially, since it carries down some legacy properties and thus minimises
the amount of work you have to do to get your former BDE app up and running
under IBO. As you gradually move over to take advantage of IBO features
that are not available to the TDataset-compatible components, you might
want to exchange your TIBODatabase for TIB_Connection[s] and
TIB_Transaction[s]. They are considerably lighter in weight than
TIBODatabase (though not lighter in functionality) and, of course, you'll
be able to take full advantage of multiple-database connections, multiple
transactions, and such.

There is no particular advantage of one combination over the other at this
point. Just use what works best for you...