Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » MobiLink - 客户端管理 » 用于 MobiLink 的 SQL Anywhere 客户端 » SQL Anywhere 客户端 » 同步调度

 

使用事件挂接进行同步启动

可以实现 dbmlsync 事件挂接来控制同步的执行时间。

通过 sp_hook_dbmlsync_end 挂接,可以使用 #hook_dict 表中的 Restart 行在每个同步结束时决定 dbmlsync 是否需要重复执行同步。

通过 sp_hook_dbmlsync_delay 挂接,可以在每个同步开始时刻前创建一个延迟,以便选择开始执行同步的时间。通过此挂接,可以设置固定时间长度的延迟,或定期进行轮询以等待某种条件得到满足。

使用 Dbmlsync API 或者 SQL SYNCHRONIZE 语句时此方法不可用。

 另请参见