FireDAC.Comp.Client.TFDCustomCommand.Disconnect

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
Unit: FireDAC.Comp.Client
Parent: TFDCustomCommand

Delphi

procedure Disconnect(AAbortJob: Boolean = False);

C++

void __fastcall Disconnect(bool AAbortJob = false);

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