Back to OIM Explorer

dbo.QBM_TDDialogColumnGroupRight

Database TriggerSQL_TRIGGERSandbox DB

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

Source: sandbox-db sys.sql_modules

Source size: 1.106 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 6
  • References QBM_PDBQueueInsert_Bulk
  • Trigger parent table: DialogColumnGroupRight

Typed Edges

  • queues DBQueue task QBM_ZMissingDisplayRightFill at line 6 Bulk DBQueue insert -> QBM-K-MissingDisplayRightFill / QBM_ZMissingDisplayRightFill at line 6
  • trigger on table DialogColumnGroupRight Trigger parent table: DialogColumnGroupRight
  • 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_TDDialogColumn source text reference

References

Referenced By

  • No direct source references extracted.

Complete Source

SQL50 lines
1CREATE trigger QBM_TDDialogColumnGroupRight2  ON DialogColumnGroupRight 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 DialogColumn c25      ON t.UID_DialogColumn = c.UID_DialogColumn26    JOIN QBM_VQBMRelationALL ra27      ON c.UID_DialogTable = ra.UID_DialogTableChild28    UNION29    SELECT ra.UID_DialogTableChild30    FROM deleted t31    JOIN DialogColumn c32      ON t.UID_DialogColumn = c.UID_DialogColumn33    JOIN QBM_VQBMRelationALL ra34      ON c.UID_DialogTable = ra.UID_DialogTableParent35    UNION36    SELECT c.UID_DialogTable37    FROM deleted t38    JOIN DialogColumn c39      ON t.UID_DialogColumn = c.UID_DialogColumn) AS x40    EXEC QBM_PDBQueueInsert_Bulk 'QBM-K-MissingDisplayRightFill',41      @DBQueueElements_3683642  END TRY43  BEGIN CATCH44    EXEC QBM_PSessionErrorAdd DEFAULT45    RAISERROR('',46    18,47    1)48      WITH NOWAIT49  END CATCH50END
Open raw exported source
SQL ยท Raw9 lines
1create   trigger QBM_TDDialogColumnGroupRight on DialogColumnGroupRight  for Delete not for Replication as begin  BEGIN TRY if exists (select top2 1 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 DialogColumn c on t.UID_DialogColumn = c.UID_DialogColumn join QBM_VQBMRelationALL ra on c.UID_DialogTable = ra.UID_DialogTableChild union select5 ra.UID_DialogTableChild from deleted t join DialogColumn c on t.UID_DialogColumn = c.UID_DialogColumn join QBM_VQBMRelationALL ra on c.UID_DialogTable6 = ra.UID_DialogTableParent union select c.UID_DialogTable from deleted t join DialogColumn c on t.UID_DialogColumn = c.UID_DialogColumn ) as x exec QBM_PDBQueueInsert_Bulk7 'QBM-K-MissingDisplayRightFill', @DBQueueElements_36836  END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH8 end 9