Back to OIM Explorer

dbo.QER_TUDialogTable

Database TriggerSQL_TRIGGERSandbox DB

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

Source: sandbox-db sys.sql_modules

Source size: 747 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 4
  • References QBM_PDBQueueInsert_Single
  • Trigger parent table: DialogTable

Typed Edges

  • queues DBQueue task QBM_ZRecalculate at line 4 Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 4
  • trigger on table DialogTable Trigger parent table: DialogTable
  • 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

SQL43 lines
1CREATE trigger QER_TUDialogTable2  ON DialogTable 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(isdeactivatedByPreprocessor)20    BEGIN21      IF EXISTS(22        SELECT TOP 1 123        FROM DialogTable t24        JOIN deleted d25          ON t.UID_DialogTable = d.UID_DialogTable26        WHERE27          t.IsDeactivatedByPreProcessor <> d.IsDeactivatedByPreProcessor)28      BEGIN29        EXEC QBM_PDBQueueInsert_Single 'QBM-K-CommonReCalculate',30        'QER-K-DynamicGroupMakeProc',31        '',32          @GenProcID33      END34    END35  END TRY36  BEGIN CATCH37    EXEC QBM_PSessionErrorAdd DEFAULT38    RAISERROR('',39    18,40    1)41      WITH NOWAIT42  END CATCH43END
Open raw exported source
SQL ยท Raw6 lines
1 create   trigger QER_TUDialogTable on DialogTable  for Update not for Replication as begin  BEGIN TRY if exists (select top 1 1 from inserted) 2goto start if exists (select top 1 1 from deleted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext3('') if update(isdeactivatedByPreprocessor) begin if exists (select top 1 1 from DialogTable t join deleted d on t.UID_DialogTable = d.UID_DialogTable 4where t.IsDeactivatedByPreProcessor <> d.IsDeactivatedByPreProcessor ) begin exec QBM_PDBQueueInsert_Single 'QBM-K-CommonReCalculate', 'QER-K-DynamicGroupMakeProc'5, '', @GenProcID end end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH end 6