FireDAC.Comp.Client.TFDCustomCommand.Disconnect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Disconnect(AAbortJob: Boolean = False);

C++

void __fastcall Disconnect(bool AAbortJob = false);

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

See Also