EasyTable: Single-File Embedded Database,
a BDE replacement for Delphi and C++Builder
Connecting to a database
There are two ways to connect to a database server using a database component:
|2.||Set the Connected property to True.
Setting Connected to True executes the Open method. Open verifies that the database specified by the DatabaseFileName exists and opens the database file.
Disconnecting from a database
There are two ways to disconnect open database from a database component:
|1.||Set the Connected property to False.
Setting Connected to False calls Close. Close closes all open datasets and database file. For example, the following code closes all active datasets and database file for a database component :
EasyDatabase1.Connected := False;