EPUB | CHM | PDF

TPSQLDatabase.Methods.Close

Top Previous Next

Closes the connection.

Syntax:

procedure Close;

Description:

Call Close to disconnect from the source of database information. Before the connection component is deactivated, all associated datasets are closed. Calling Close is the same as setting the Connected property to False.

In most cases, closing a connection frees system resources allocated to the connection.

If a previously active connection is closed and then reopened, any associated datasets must be individually reopened; reopening the connection does not automatically reopen associated datasets.