EPUB | CHM | PDF

TPSQLBatchExecute.Events.OnBatchError

Top Previous Next

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

Syntax:

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

Parameters:

Sender

Points to TPSQLBatchExecute component generated this error.

E

An instance of EPSQLDatabaseError 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 after execution of SQL statement from SQL script executed by ExecSQL method.