Set the replication_error option to call a procedure when a SQL error occurs. By default, no procedure is called when a SQL error occurs.
The procedure that is called must have a single argument type of CHAR, VARCHAR, or LONG VARCHAR. The procedure is called once with the SQL error message and once with the SQL statement that causes the error.
Execute the following statement. The remote-user is the publisher name on the SQL Remote Message Agent (dbremote) command and procedure-name is the procedure called when a SQL error is detected.
SET OPTION remote-user.replication_error = 'procedure-name'; |
Collecting errors from the remote database
Receiving email notification about remote database errors
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |