Bde.DBTables.TDatabase
Delphi
TDatabase = class(TCustomConnection)
C++
class PASCALIMPLEMENTATION TDatabase : public Data::Db::TCustomConnection
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | Bde.DBTables.pas Bde.DBTables.hpp |
Bde.DBTables | Bde.DBTables |
Description
TDatabase provides discrete control over a connection to a single database in a BDE-based database application.
Use TDatabase when a BDE-based database application requires any of the following controls 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 run time.