Show: Delphi C++
Display Preferences

Data.DB.TCustomConnection.Close

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Close;

C++

void __fastcall Close();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.DB.pas
Data.DB.hpp
Data.DB TCustomConnection

Description

Closes the connection.

Call Close to disconnect from the remote 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.

Note: 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.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance