FireDAC.Comp.Client.TFDCustomCommand.Disconnect
Delphi
procedure Disconnect(AAbortJob: Boolean = False);
C++
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 | TFDCustomCommand |
Description
Releases the DBMS resources, used by this command.
The Disconnect method optionally aborts the current operation and releases the DBMS resources, used by this command.
After the call, the command is in csInactive state.
Example
ADCommand1.CommandText.Text := 'select * from [Order Details]';
ADCommand1.Prepare := True;
ADCommand1.Active := True;
ADCommand1.Disconnect;
// Active = False and Prepare = False