RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDatabase Class

TDatabase provides discrete control over a connection to a single database in a BDE-based database application.

Pascal
TDatabase = class(TCustomConnection);
C++
class TDatabase : public TCustomConnection;

Use TDatabase when a BDE-based database application requires any of the following control over a database connection: 

Persistent database connections 

Customized database server logins 

Transaction control 

Application-specific BDE aliases 

TDatabase is especially important for the control it permits over database transaction processing with the BDE when connected to a remote SQL database server.

Note: Explicit declaration of a TDatabase component for each database connection in an application is optional if the application does not need to explicitly control that connection. If a TDatabase component is not explicitly declared and instantiated for a database connection, a temporary database component with a default set of properties is created for it at runtime.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!