![]() |
---|
CREATE trigger TR_GROUPMEMBER_T2BUPDATE on dbo.GROUPMEMBER after update not for replication as begin if dbo.UFN_B2T_CONTEXTISSYNC() = 0 begin -- force re-sync of the parent row update dbo.TA_CONSTITUENT set ACTIONCODE = case when ACTIONCODE=1 then 1 else 2 end where ID in(select MEMBERID from INSERTED); end end |