Back to OIM Explorer

dbo.QBM_TDDialogGroup

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on DialogGroup. Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 2; Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 2; Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 2; Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 3

Source: sandbox-db sys.sql_modules

Source size: 666 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 2
  • Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 2
  • Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 2
  • Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 3
  • Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 3
  • References QBM_PDBQueueInsert_Single
  • Trigger parent table: DialogGroup

Typed Edges

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

Complete Source

SQL34 lines
1CREATE trigger QBM_TDDialogGroup2  ON DialogGroup FOR3DELETE NOT FOR Replication4AS5BEGIN6  BEGIN TRY7    IF EXISTS(8      SELECT TOP 1 19      FROM deleted)10    GOTO start11    RETURN start:12    DECLARE @GenProcID varchar(38)13    SELECT @GenProcID = dbo.QBM_FGISessionContext('')14    EXEC QBM_PDBQueueInsert_Single 'QBM-K-CommonReCalculate',15    'QBM-K-CommonGroupNumber',16    '',17      @GenProcID18    EXEC QBM_PDBQueueInsert_Single 'QBM-K-CommonReCalculate',19    'QBM-K-CommonGroupPattern',20    '',21      @GenProcID22    EXEC QBM_PDBQueueInsert_Single 'QBM-K-CommonReCalculate',23    'QBM-K-CommonGroupCollection',24    '',25      @GenProcID26  END TRY27  BEGIN CATCH28    EXEC QBM_PSessionErrorAdd DEFAULT29    RAISERROR('',30    18,31    1)32      WITH NOWAIT33  END CATCH34END
Open raw exported source
SQL ยท Raw6 lines
1 create   trigger QBM_TDDialogGroup on DialogGroup  for Delete not for Replication as begin  BEGIN TRY if exists (select top 1 1 from deleted) goto2 start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('') exec QBM_PDBQueueInsert_Single 'QBM-K-CommonReCalculate'3, 'QBM-K-CommonGroupNumber', '', @GenProcID exec QBM_PDBQueueInsert_Single 'QBM-K-CommonReCalculate', 'QBM-K-CommonGroupPattern', '', @GenProcID exec QBM_PDBQueueInsert_Single4 'QBM-K-CommonReCalculate', 'QBM-K-CommonGroupCollection', '', @GenProcID END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH5 NOWAIT END CATCH end 6