EnterpriseDBDAC

TEDBBatchExecute.Events.OnBatchError

Previous Next

OnBatchError event fires after an error occurs afer execution of SQL statement from SQL script executed by ExecSQL method.

Syntax:

OnBatchError: TEDBBatchErrorEvent;
Type
TEDBBatchErrorEvent = procedure(Sender: TObject;
                                      E: EEDBDatabaseError;
                                SQLText: String;
                            StatementNo: Integer) of object;

Parameters:

Sender

Points to TEDBBatchExecute component generated this error.

E

An instance of EEDBDatabaseError object which contains this error info.

SQLText

Contains the text of the statement in which this error occurs.

StatementNo

The number of the SQL statement in SQL script.

Description:

OnBatchError event fires after an error occurs afer execution of SQL statement from SQL script executed by ExecSQL method.