MobiLink Synchronization User's Guide
Adaptive Server Anywhere Clients
Customizing the client synchronization process
Using event-hook procedures
Each event-hook procedure is executed on the same connection as the synchronization itself. The following are exceptions:
sp_hook_dbmlsync_download_com_error
sp_hook_dbmlsync_download_fatal_sql_error
sp_hook_dbmlsync_download_log_ri_violation
These procedures are called before a synchronization fails. On failure, synchronization actions are rolled back. By operating on a separate connection, you can use these procedures to log information about the failure, without the logging actions being rolled back along with the synchronization actions.