SET TERM ^ ;

CREATE OR ALTER trigger TTBTEF_PARAMETROS_biud998 for TBTEF_PARAMETROS
active before insert or update or delete position 998
AS
BEGIN

    IF(INSERTING) THEN
    BEGIN
        EXECUTE PROCEDURE SPI_INTEGRACAO('TBTEF_PARAMETROS', NEW.ID, 2);
    END ELSE
    BEGIN
        EXECUTE PROCEDURE SPI_INTEGRACAO('TBTEF_PARAMETROS', OLD.ID, 2);
    END
END
^

SET TERM ; ^


SET TERM ^ ;

CREATE OR ALTER trigger TTBAPI_BB_biud998 for TBAPI_BB
active before insert or update or delete position 998
AS
BEGIN

    IF(INSERTING) THEN
    BEGIN
        EXECUTE PROCEDURE SPI_INTEGRACAO('TBAPI_BB', NEW.ID, 2);
    END ELSE
    BEGIN
        EXECUTE PROCEDURE SPI_INTEGRACAO('TBAPI_BB', OLD.ID, 2);
    END
END
^

SET TERM ; ^


