Back to OIM Explorer

dbo.QBM_TDDialogTableGroupRight

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on DialogTableGroupRight. Bulk DBQueue insert -> QBM-K-MissingDisplayRightFill / QBM_ZMissingDisplayRightFill at line 5; References QBM_PDBQueueInsert_Bulk; Trigger parent table: DialogTableGroupRight

Source: sandbox-db sys.sql_modules

Source size: 911 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

  • Bulk DBQueue insert -> QBM-K-MissingDisplayRightFill / QBM_ZMissingDisplayRightFill at line 5
  • References QBM_PDBQueueInsert_Bulk
  • Trigger parent table: DialogTableGroupRight

Typed Edges

  • queues DBQueue task QBM_ZMissingDisplayRightFill at line 5 Bulk DBQueue insert -> QBM-K-MissingDisplayRightFill / QBM_ZMissingDisplayRightFill at line 5
  • trigger on table DialogTableGroupRight Trigger parent table: DialogTableGroupRight
  • references source dbo.QBM_FGISessionContext source text reference
  • references source dbo.QBM_PDBQueueInsert_Bulk source text reference
  • references source dbo.QBM_PSessionErrorAdd source text reference
  • references source dbo.QBM_TDDialogTable source text reference

References

Referenced By

  • No direct source references extracted.

Complete Source

SQL44 lines
1CREATE trigger QBM_TDDialogTableGroupRight2  ON DialogTableGroupRight 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) = dbo.QBM_FGISessionContext('')13    DECLARE @DBQueueElements_36836 QBM_YDBQueueRaw14    INSERT INTO @DBQueueElements_36836(Object,15    SubObject,16    GenProcID)17    SELECT18      x.uid,19      NULL,20      @GenProcID21    FROM(22    SELECT ra.UID_DialogTableParent AS uid23    FROM deleted t24    JOIN QBM_VQBMRelationALL ra25      ON t.UID_DialogTable = ra.UID_DialogTableChild26    UNION27    SELECT ra.UID_DialogTableChild28    FROM deleted t29    JOIN QBM_VQBMRelationALL ra30      ON t.UID_DialogTable = ra.UID_DialogTableParent31    UNION32    SELECT t.UID_DialogTable33    FROM deleted t) AS x34    EXEC QBM_PDBQueueInsert_Bulk 'QBM-K-MissingDisplayRightFill',35      @DBQueueElements_3683636  END TRY37  BEGIN CATCH38    EXEC QBM_PSessionErrorAdd DEFAULT39    RAISERROR('',40    18,41    1)42      WITH NOWAIT43  END CATCH44END
Open raw exported source
SQL ยท Raw7 lines
1create   trigger QBM_TDDialogTableGroupRight on DialogTableGroupRight  for Delete not for Replication as begin  BEGIN TRY if exists (select top 21 1 from deleted) goto start return start: declare @GenProcID varchar(38) = dbo.QBM_FGISessionContext('')  declare @DBQueueElements_36836 QBM_YDBQueueRaw3 insert into @DBQueueElements_36836(Object, SubObject, GenProcID) select x.uid, null, @GenProcID from ( select ra.UID_DialogTableParent as uid from deleted4 t join QBM_VQBMRelationALL ra on t.UID_DialogTable = ra.UID_DialogTableChild union select ra.UID_DialogTableChild from deleted t join QBM_VQBMRelationALL5 ra on t.UID_DialogTable = ra.UID_DialogTableParent union select t.UID_DialogTable from deleted t ) as x exec QBM_PDBQueueInsert_Bulk 'QBM-K-MissingDisplayRightFill'6, @DBQueueElements_36836  END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH end 7