dbo.QBM_TIDialogTableGroupRight
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 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_TIDialogTable source text reference
References
- dbo.QBM_FGISessionContext
- dbo.QBM_PDBQueueInsert_Bulk
- dbo.QBM_PSessionErrorAdd
- dbo.QBM_TIDialogTable
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger QBM_TIDialogTableGroupRight2 ON DialogTableGroupRight 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 t24 JOIN QBM_VQBMRelationALL ra25 ON t.UID_DialogTable = ra.UID_DialogTableChild26 UNION27 SELECT ra.UID_DialogTableChild28 FROM inserted t29 JOIN QBM_VQBMRelationALL ra30 ON t.UID_DialogTable = ra.UID_DialogTableParent31 UNION32 SELECT t.UID_DialogTable33 FROM inserted 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 CATCH44 ende:45 RETURN46END
Open raw exported source
1 create trigger QBM_TIDialogTableGroupRight on DialogTableGroupRight for Insert not for Replication as begin BEGIN TRY if exists (select top2 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 t join QBM_VQBMRelationALL ra on t.UID_DialogTable = ra.UID_DialogTableChild union select ra.UID_DialogTableChild from inserted t join QBM_VQBMRelationALL5 ra on t.UID_DialogTable = ra.UID_DialogTableParent union select t.UID_DialogTable from inserted 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 ende: return end 7