RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDatabase.Connected Property

Indicates whether a database connection is active.

Pascal
property Connected: Boolean;
C++
__property Boolean Connected;

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.

Note: Set KeepConnection to true to avoid having to log in to the server each time a database connection is reopened.
 

DataSets 

KeepConnection 

Connecting to Databases with TDatabase

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!