打印本文 打印本文 关闭窗口 关闭窗口
在Sybase ASE中使用Passthrough
作者:武汉SEO闵涛  文章来源:敏韬网  点击数851  更新时间:2009/4/22 23:09:20  文章录入:mintao  责任编辑:mintao
在Sybase ASE中使用Passthrough更新被复制端的数据或结构.

必须使用事务
declare @sql1 varchar(255)
select @sql1='update Goods set Name='+''''+'ABCD'+''''+',ShortName='+''''+'ABC'+''''+'where GoodsID=4655'
begin tran
exec sp_passthrough_user '订阅用户ID'
exec sp_passthrough_subscription 'BP_HQ_BDATA'
exec sp_passthrough @sql1
exec sp_passthrough_stop
commit tran
关闭本页  

打印本文 打印本文 关闭窗口 关闭窗口