pb11.5以后可以,
继承transaction,在DBError事件里面写上连接判断与恢复的语句,
再将SQLCA的父类设置为你定义的新类
Argument Description
code Long by value. A database-specific error code. See your DBMS documentation for information on the meaning of the code.When there is no error code from the DBMS, code contains one of these values:-1 - Cannot connect to the database-2 - Writing a blob to the database failed-4 - All other errors (see Usage note for more detail)
sqlerrortext String by value. A database-specific error message.
sqlsyntax String by value. The full text of the SQL statement being sent to the DBMS when the error occurred.