FireDAC.Comp.Client.TFDTable.Disconnect
Delphi
procedure Disconnect(AAbortJob: Boolean = False); override;
C++
virtual void __fastcall Disconnect(bool AAbortJob = false);
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDTable |
Description
Disconnects the dataset from the DBMS.
The Disconnect method optionally aborts the current dataset tasks, such as Open, Execute, ExecSQL, or rows fetching. Then it closes and unprepares the dataset.
Example
FDQuery1.Disconnect(True);
// is equivalent to:
// FDQuery1.AbortJob(True);
// FDQuery1.Close;
// FDQuery1.Unprepare;