FireDAC.Comp.Client.TFDCustomConnection.AbortJob
Delphi
procedure AbortJob(AWait: Boolean = False);
C++
void __fastcall AbortJob(bool AWait = false);
Contents
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;