dbo.QBM_TIJobChain
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-CommonPrepropJobChain / QBM_ZPrePropJobChain at line 5
- References QBM_PDBQueueInsert_Bulk
- Trigger parent table: JobChain
Typed Edges
- queues DBQueue task QBM_ZPrePropJobChain at line 5 Bulk DBQueue insert -> QBM-K-CommonPrepropJobChain / QBM_ZPrePropJobChain at line 5
- trigger on table JobChain Trigger parent table: JobChain
- 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
- references source dbo.QBM_TIJob source text reference
References
- dbo.QBM_FGISessionContext
- dbo.QBM_PDBQueueInsert_Bulk
- dbo.QBM_PPrePropCheckSyntax
- dbo.QBM_PSessionErrorAdd
- dbo.QBM_TIJob
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger QBM_TIJobChain2 ON JobChain FOR3INSERT NOT FOR Replication4AS5BEGIN6 DECLARE @GenProcID varchar(38)7 DECLARE @ConditionsToCheck QBM_YParameterList8 BEGIN TRY9 IF EXISTS(10 SELECT TOP 1 111 FROM inserted)12 GOTO start13 RETURN start: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_Jobchain AS UID29 FROM inserted) AS x30 EXEC QBM_PDBQueueInsert_Bulk 'QBM-K-CommonPrepropJobChain',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
1 create trigger QBM_TIJobChain on JobChain for Insert not for Replication as begin declare @GenProcID varchar(38) declare @ConditionsToCheck2 QBM_YParameterList BEGIN TRY if exists (select top 1 1 from inserted) goto start return start: select @GenProcID = dbo.QBM_FGISessionContext('') insert3 into @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_Jobchain as UID from inserted5 ) as x exec QBM_PDBQueueInsert_Bulk 'QBM-K-CommonPrepropJobChain', @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR6 ('', 18, 1) WITH NOWAIT END CATCH end 7