7. Understanding Database Procedures, Sessions, and Events : Database Events : Database Event Statements : User-Defined Database Event Handlers
 
Share this page                  
User-Defined Database Event Handlers
To define your own database event-handling routine, use the EXEC SQL SET_SQL(DBEVENTHANDLER) statement. This method traps database events as soon as they are added to the database event queue; the WHENEVER method must wait for queries to complete before it can trap database events.