DAC for MySQL
TMySQLDatabase.Properties.Connected | Previous Next |
Indicates whether or not a database connection is active.
Syntax:
property Connected: Boolean;
Description:
Set Connected to True to establish a database connection without opening a dataset.
Set Connected to False to close a database connection. An application can check
Connected to determine the current status of a database connection. If Connected is
True, the database connection is active; if False, and the
KeepConnection property is also False, then the connection is
inactive.
 | Set KeepConnection to True to avoid having to login to
the server each time a database connection is reopened. |