必须使用事务
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
共有 0 位网友发表了评论,得分 0 分,平均 0 分 查看完整评论