FireDAC.Comp.Client.TFDCustomConnection.AbortJob

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AbortJob(AWait: Boolean = False);

C++

void __fastcall AbortJob(bool AWait = false);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDCustomConnection

Description

Use the AbortJob method to abort all running dataset operations on this connection.

The AbortJob method aborts all the following dataset operations running on this connection:

  • Open. The dataset is executing a DBMS command to open the cursor.
  • ExecSQL/Execute. The dataset is executing a DBMS command.
  • Fetch. The dataset is fetching rows from the cursor.

Example

ADConnection1.AbortJob(True);
ADConnection1.Connected := False;

See Also