dbo.QBM_TIDialogColumnGroupRight
Database TriggerSQL_TRIGGERSandbox DB
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_TIDialogColumn source text reference
References
- dbo.QBM_FGISessionContext
- dbo.QBM_PDBQueueInsert_Bulk
- dbo.QBM_PSessionErrorAdd
- dbo.QBM_TIDialogColumn
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger QBM_TIDialogColumnGroupRight2 ON DialogColumnGroupRight FOR3INSERT NOT FOR Replication4AS5BEGIN6 BEGIN TRY7 IF EXISTS(8 SELECT TOP 1 19 FROM inserted)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 inserted i24 JOIN DialogColumn c25 ON i.UID_DialogColumn = c.UID_DialogColumn26 JOIN QBM_VQBMRelationALL ra27 ON c.UID_DialogTable = ra.UID_DialogTableChild28 UNION29 SELECT ra.UID_DialogTableChild30 FROM inserted i31 JOIN DialogColumn c32 ON i.UID_DialogColumn = c.UID_DialogColumn33 JOIN QBM_VQBMRelationALL ra34 ON c.UID_DialogTable = ra.UID_DialogTableParent35 UNION36 SELECT c.UID_DialogTable37 FROM inserted i38 JOIN DialogColumn c39 ON i.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 CATCH50 ende:51 RETURN52END
Open raw exported source
1 create trigger QBM_TIDialogColumnGroupRight on DialogColumnGroupRight for Insert not for Replication as begin BEGIN TRY if exists (select 2top 1 1 from inserted) 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 inserted4 i join DialogColumn c on i.UID_DialogColumn = c.UID_DialogColumn join QBM_VQBMRelationALL ra on c.UID_DialogTable = ra.UID_DialogTableChild union select5 ra.UID_DialogTableChild from inserted i join DialogColumn c on i.UID_DialogColumn = c.UID_DialogColumn join QBM_VQBMRelationALL ra on c.UID_DialogTable6 = ra.UID_DialogTableParent union select c.UID_DialogTable from inserted i join DialogColumn c on i.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 ende: return end 9