以下存储过程名称和参数提供用于在 SQL Remote 数据库自定义同步的接口。
除非另有规定,否则以下内容适用于事件挂接过程:
存储过程必须具有 DBA 权限 (Adaptive Server Anywhere) 或 dbo 权限 (Adaptive Server Enterprise)。
该过程不得提交或回退操作,或者不得执行任何执行隐式提交的动作。该过程的操作自动由调用应用程序提交。
您可以通过启用消息代理详细模式,排除挂接问题。
用于 dbremote 的挂接和用于 ssremote 的挂接只在名称上不同。
调用挂接前用以下 CREATE 语句创建 #hook_dict 表:
CREATE table #hook_dict( name VARCHAR(128) NOT NULL UNIQUE, value VARCHAR(255) NOT NULL )
消息代理使用 #hook_dict 表将值传送给挂接函数;挂接函数使用 #hook_dict 表将值传送回消息代理。
sp_hook_dbremote_begin 和 sp_hook_ssrmt_begin
sp_hook_dbremote_end 和 sp_hook_ssrmt_end
sp_hook_dbremote_shutdown 和 sp_hook_ssrmt_shutdown
sp_hook_dbremote_receive_begin 和 sp_hook_ssrmt_receive_begin
sp_hook_dbremote_receive_end 和 sp_hook_ssrmt_receive_end
sp_hook_dbremote_send_begin 和 sp_hook_ssrmt_send_begin
sp_hook_dbremote_send_end 和 sp_hook_ssrmt_send_end
sp_hook_dbremote_message_sent 和 sp_hook_ssrmt_message_sent
sp_hook_dbremote_message_missing 和 sp_hook_ssrmt_message_missing
sp_hook_dbremote_message_apply_begin 和 sp_hook_ssrmt_message_apply_begin
sp_hook_dbremote_message_apply_end 和 sp_hook_ssrmt_message _apply_end
SQL Anywhere Studio 9.0.2
版权所有 © 1989–2005 Sybase, Inc. 部分版权所有 © 2001–2005 iAnywhere Solutions, Inc. 保留所有权利。