Trigger Previous topic Chapter index Next topic

SRE_ITEMTEMPLATES_AFTER_UP

 

Beschreibung

Update-Trigger für die Replikation

 

Definition

CREATE TRIGGER SRE_ITEMTEMPLATES_AFTER_UP FOR SRE_ITEMTEMPLATES
INACTIVE AFTER UPDATE POSITION 0
as
begin 
  if ((USER <> 'REPLICATION') and (old.itstatus = new.itstatus)) then 
  begin
    insert into replication (tid,      tablename,           modus, rtid, idname, reptime) 
    values                  (new.itid, 'SRE_ITEMTEMPLATES', 2,     50,   'ITID', 'now');
  end
end

 

     Previous topic Chapter index Next topic