Problems should be paid to the link server during the stored procedure

xiaoxiao2021-03-05  20

Please write

SET XACT_ABORT ON

USE EIMif exists (select 1 from sysobjects where name = 'tr_update_pis_ishavepic' and type = 'tr') drop trigger tr_update_pis_ishavepicGOcreate trigger tr_update_pis_ishavepicon PicRelationshipfor insertAS set XACT_ABORT on declare @sysid int --set @sysid = 3 declare @itemid varchar (20) select @itemid = correLativeItemID, @ sysid = rateysystemid from inserted if @SYSID = 3 Update szdb2.pis.dbo.tb_brm_estate set ishave_pic = 1 where est_id = @itemidgo

转载请注明原文地址:https://www.9cbs.com/read-39268.html

New Post(0)