Back to OIM Explorer

dbo.QER_TUQERWorkingMethod

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on QERWorkingMethod. Trigger parent table: QERWorkingMethod

Source: sandbox-db sys.sql_modules

Source size: 699 characters

Interpretation

  • Database trigger. Treat parent table and enqueue/object-layer calls as the main relation points.

Relations

  • Trigger parent table: QERWorkingMethod

Typed Edges

  • trigger on table QERWorkingMethod Trigger parent table: QERWorkingMethod
  • references source dbo.QBM_FGIColumnUpdatedOthers source text reference
  • references source dbo.QBM_FGISessionContext source text reference
  • references source dbo.QBM_PSessionErrorAdd source text reference
  • references source dbo.QER_PGIQERWorkingMethod source text reference

Complete Source

SQL44 lines
1CREATE trigger QER_TUQERWorkingMethod2  ON QERWorkingMethod FOR3UPDATE NOT FOR Replication4AS5BEGIN6  BEGIN TRY7    IF EXISTS(8      SELECT TOP 1 19      FROM inserted)10    GOTO start11    IF EXISTS(12      SELECT TOP 1 113      FROM deleted)14    GOTO start15    RETURN start:16    IF dbo.QBM_FGISessionContext('QER_PGIQERWorkingMethod') > ' '17    BEGIN18      GOTO endlabel19    END20    IF dbo.QBM_FGIColumnUpdatedOthers('QERWorkingMethod',21    'XObjectKey',22    COLUMNS_UPDATED()) = 123    BEGIN24      IF EXISTS(25        SELECT TOP 1 126        FROM inserted)27      BEGIN28        RAISERROR('#LDS#Changes on working table {0} are not allowed.|QERWorkingMethod|',29        18,30        1)31          WITH nowait32      END33    END34  END TRY35  BEGIN CATCH36    EXEC QBM_PSessionErrorAdd DEFAULT37    RAISERROR('',38    18,39    1)40      WITH NOWAIT41  END CATCH42  endLabel:43  RETURN44END
Open raw exported source
SQL ยท Raw6 lines
1 create   trigger QER_TUQERWorkingMethod on QERWorkingMethod  for Update not for Replication as begin  BEGIN TRY if exists (select top 1 1 from 2inserted) goto start if exists (select top 1 1 from deleted) goto start return start: if dbo.QBM_FGISessionContext('QER_PGIQERWorkingMethod') > ' ' begin3 goto endlabel end if dbo.QBM_FGIColumnUpdatedOthers('QERWorkingMethod', 'XObjectKey', COLUMNS_UPDATED()) = 1 begin if exists (select top 1 1 from inserted4 ) begin raiserror('#LDS#Changes on working table {0} are not allowed.|QERWorkingMethod|', 18, 1) with nowait end end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd5 default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH endLabel: return end 6