Data.SqlExpr.TSQLConnection.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: destructor
Visibility: public
Source:
Data.SqlExpr.pas
Data.SqlExpr.hpp
Unit: Data.SqlExpr
Parent: TSQLConnection

Delphi

destructor Destroy; override;

C++

__fastcall virtual ~TSQLConnection();

Description

Destroys the SQL connection object.

To free a TSQLConnection instance, do not call Destroy. Instead, call Free. Free verifies that the ADO connection is not nil, and only then calls Destroy.

There is no need to explicitly free instances of TSQLConnection that were created with an Owner.

See Also