Back to OIM Explorer

dbo.QER_TUDialogConfigParm

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on DialogConfigParm. Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 5; Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 5; References QBM_PDBQueueInsert_Single; Trigger parent table: DialogConfigParm

Source: sandbox-db sys.sql_modules

Source size: 961 characters

Interpretation

  • Database trigger. Treat parent table and enqueue/object-layer calls as the main relation points.
  • DBQueue relation detected. Follow the task procedure and referenced-by list for async processing.

Relations

  • Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 5
  • Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 5
  • References QBM_PDBQueueInsert_Single
  • Trigger parent table: DialogConfigParm

Typed Edges

  • queues DBQueue task QBM_ZRecalculate at line 5 Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 5
  • trigger on table DialogConfigParm Trigger parent table: DialogConfigParm
  • references source dbo.QBM_FGISessionContext source text reference
  • references source dbo.QBM_PDBQueueInsert_Single source text reference
  • references source dbo.QBM_PSessionErrorAdd source text reference

References

Referenced By

  • No direct source references extracted.

Complete Source

SQL49 lines
1CREATE trigger QER_TUDialogConfigParm2  ON DialogConfigParm 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    DECLARE @GenProcID varchar(38)17    SELECT @GenProcID = dbo.QBM_FGISessionContext('')18    IF19    UPDATE(value) OR20    UPDATE(IsEnabledResulting)21    BEGIN22      IF EXISTS(23        SELECT TOP 1 124        FROM dialogconfigparm p25        JOIN deleted d26          ON p.uid_configparm = d.uid_configparm AND(isnull(d.value, N '') <> isnull(p.value, N '') OR isnull(d.IsEnabledResulting,27      0) <> isnull(p.IsEnabledResulting, 0))28      WHERE29        p.IsPreprocessorCondition = 1)30      BEGIN31        EXEC QBM_PDBQueueInsert_Single 'QBM-K-CommonReCalculate',32        'QER-K-DynamicGroupMakeProc',33        '',34          @GenProcID35        EXEC QBM_PDBQueueInsert_Single 'QBM-K-CommonReCalculate',36        'QER-K-DynamicGroupTest',37        '',38          @GenProcID39      END40    END41  END TRY42  BEGIN CATCH43    EXEC QBM_PSessionErrorAdd DEFAULT44    RAISERROR('',45    18,46    1)47      WITH NOWAIT48  END CATCH49END
Open raw exported source
SQL ยท Raw8 lines
1 create   trigger QER_TUDialogConfigParm on DialogConfigParm  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: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext3('') if update(value) or update(IsEnabledResulting) begin   if exists ( select top 1 1 from dialogconfigparm p join deleted d on p.uid_configparm = d.uid_configparm4 and ( isnull(d.value,N'') <> isnull(p.value,N'') or isnull(d.IsEnabledResulting,0)<> isnull(p.IsEnabledResulting,0) ) where p.IsPreprocessorCondition 5= 1 ) begin  exec QBM_PDBQueueInsert_Single 'QBM-K-CommonReCalculate', 'QER-K-DynamicGroupMakeProc', '', @GenProcID exec QBM_PDBQueueInsert_Single 'QBM-K-CommonReCalculate'6, 'QER-K-DynamicGroupTest', '', @GenProcID end end  END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH end7 8