dbo.QBM_TIQBMTree
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-CommonPrepropTree / QBM_ZPrePropTree at line 5
- References QBM_PDBQueueInsert_Bulk
- Trigger parent table: QBMTree
Typed Edges
- queues DBQueue task QBM_ZPrePropTree at line 5 Bulk DBQueue insert -> QBM-K-CommonPrepropTree / QBM_ZPrePropTree at line 5
- trigger on table QBMTree Trigger parent table: QBMTree
- references source dbo.QBM_FGISessionContext source text reference
- references source dbo.QBM_PDBQueueInsert_Bulk source text reference
- references source dbo.QBM_PPrePropCheckSyntax source text reference
- references source dbo.QBM_PSessionErrorAdd source text reference
Complete Source
1CREATE trigger QBM_TIQBMTree2 ON QBMTree FOR3INSERT NOT FOR Replication4AS5BEGIN6 DECLARE @ConditionsToCheck QBM_YParameterList7 BEGIN TRY8 IF EXISTS(9 SELECT TOP 1 110 FROM inserted)11 GOTO start12 RETURN start:13 DECLARE @GenProcID varchar(38)14 SELECT @GenProcID = dbo.QBM_FGISessionContext('')15 INSERT INTO @ConditionsToCheck(ContentFull)16 SELECT i.PreProcessorCondition17 FROM inserted i18 EXEC QBM_PPrePropCheckSyntax @ConditionsToCheck19 DECLARE @DBQueueElements_01 QBM_YDBQueueRaw20 INSERT INTO @DBQueueElements_01(object,21 subobject,22 genprocid)23 SELECT24 x.uid,25 NULL,26 @GenProcID27 FROM(28 SELECT uid_QBMTree AS uid29 FROM inserted) AS x30 EXEC QBM_PDBQueueInsert_Bulk 'QBM-K-CommonPrepropTree',31 @DBQueueElements_0132 END TRY33 BEGIN CATCH34 EXEC QBM_PSessionErrorAdd DEFAULT35 RAISERROR('',36 18,37 1)38 WITH NOWAIT39 END CATCH40END
Open raw exported source
1create trigger QBM_TIQBMTree on QBMTree for Insert not for Replication as begin declare @ConditionsToCheck QBM_YParameterList BEGIN TRY if exists2 (select top 1 1 from inserted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('') insert into 3@ConditionsToCheck (ContentFull) select i.PreProcessorCondition from inserted i exec QBM_PPrePropCheckSyntax @ConditionsToCheck declare @DBQueueElements_014 QBM_YDBQueueRaw insert into @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select uid_QBMTree as uid from inserted5 ) as x exec QBM_PDBQueueInsert_Bulk 'QBM-K-CommonPrepropTree', @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR (''6, 18, 1) WITH NOWAIT END CATCH end 7