FireDAC.Comp.DataSet.TFDDataSet.Disconnect
Delphi
procedure Disconnect(AAbortJob: Boolean = False); virtual;
C++
virtual void __fastcall Disconnect(bool AAbortJob = false);
Inhaltsverzeichnis
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
procedure function |
public | FireDAC.Comp.DataSet.pas FireDAC.Comp.DataSet.hpp |
FireDAC.Comp.DataSet | TFDDataSet |
Beschreibung
Releases DBMS resources used by this dataset.
Use the Disconnect method to optionally abort current operations and release DBMS resources used by this dataset. After the call, the dataset is in dsInactive state and descendants have the Prepared property set to False.
Example
FDQuery1.SQL.Text := 'select * from [Order Details]';
FDQuery1.Prepare := True;
FDQuery1.Active := True;
FDQuery1.Disconnect;
// Active = False and Prepare = False