API:FireDAC.Comp.Client.TFDAdaptedDataSet.Disconnect

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

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

C++

virtual void __fastcall Disconnect(bool AAbortJob = false);

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
procedure
function
public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDAdaptedDataSet

Beschreibung

Releases DBMS resources used by this dataset.

FireDAC.Comp.Client.TFDAdaptedDataSet.Disconnect erbt von FireDAC.Comp.DataSet.TFDDataSet.Disconnect. Der folgende Inhalt bezieht sich auf FireDAC.Comp.DataSet.TFDDataSet.Disconnect.

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

See Also