Sign in Join
FPDoc Onlineexperiment

TSQLConnection.Connected property

Member of TSQLConnectionpublishedIn unit SQLDB

Is a connection to the server active or not.

Declaration

pascal
property Connected:;

Description

Connected indicates whether a connection to the server is active or not. No queries to this server can be activated as long as the value is False

Setting the property to True will attempt a connection to the database DatabaseName on host HostName using the credentials specified in UserName and Password. If the connection or authentication fails, an exception is raised. This has the same effect as calling Open.

Setting the property to False will close the connection to the database. All datasets connected to the database will be closed, all transactions will be closed as well. This has the same effect as calling Close

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.