FireDAC.Comp.Client.TFDAdaptedDataSet.Disconnect

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
Unit: FireDAC.Comp.Client
Parent: TFDAdaptedDataSet

Delphi

procedure Disconnect(AAbortJob: Boolean = False); override;

C++

virtual void __fastcall Disconnect(bool AAbortJob = false);

Description

Disconnects the dataset from the DBMS.

The Disconnect method optionally aborts the current dataset tasks, such as Open, Execute, ExecSQL, or row fetching. Then closes the dataset and unprepares it.

Example

ADQuery1.Disconnect(True);
// is equivalent to:
// ADQuery1.AbortJob(True);
// ADQuery1.Close;
// ADQuery1.Unprepare;

See Also