dbo.QBM_TUQBMTreeResult
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-CommonPrepropTreeResult / QBM_ZPrePropTreeResult at line 6
- References QBM_PDBQueueInsert_Bulk
- Trigger parent table: QBMTreeResult
Typed Edges
- queues DBQueue task QBM_ZPrePropTreeResult at line 6 Bulk DBQueue insert -> QBM-K-CommonPrepropTreeResult / QBM_ZPrePropTreeResult at line 6
- trigger on table QBMTreeResult Trigger parent table: QBMTreeResult
- 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_TUQBMTree source text reference
References
- dbo.QBM_FGISessionContext
- dbo.QBM_PDBQueueInsert_Bulk
- dbo.QBM_PPrePropCheckSyntax
- dbo.QBM_PSessionErrorAdd
- dbo.QBM_TUQBMTree
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger QBM_TUQBMTreeResult2 ON QBMTreeResult FOR3UPDATE NOT FOR Replication4AS5BEGIN6 DECLARE @ConditionsToCheck QBM_YParameterList7 BEGIN TRY8 IF EXISTS(9 SELECT TOP 1 110 FROM inserted)11 GOTO start12 IF EXISTS(13 SELECT TOP 1 114 FROM deleted)15 GOTO start16 RETURN start:17 DECLARE @GenProcID varchar(38)18 SELECT @GenProcID = dbo.QBM_FGISessionContext('')19 IF20 UPDATE(UID_DialogObject) OR21 UPDATE(PreprocessorCondition)22 BEGIN23 INSERT INTO @ConditionsToCheck(ContentFull)24 SELECT i.PreProcessorCondition25 FROM inserted i26 EXEC QBM_PPrePropCheckSyntax @ConditionsToCheck27 DECLARE @DBQueueElements_01 QBM_YDBQueueRaw28 INSERT INTO @DBQueueElements_01(object,29 subobject,30 genprocid)31 SELECT32 x.uid,33 NULL,34 @GenProcID35 FROM(36 SELECT uid_QBMTreeResult AS uid37 FROM inserted) AS x38 EXEC QBM_PDBQueueInsert_Bulk 'QBM-K-CommonPrepropTreeResult',39 @DBQueueElements_0140 END41 END TRY42 BEGIN CATCH43 EXEC QBM_PSessionErrorAdd DEFAULT44 RAISERROR('',45 18,46 1)47 WITH NOWAIT48 END CATCH49END
Open raw exported source
1 create trigger QBM_TUQBMTreeResult on QBMTreeResult for Update not for Replication as begin declare @ConditionsToCheck QBM_YParameterList BEGIN2 TRY if exists (select top 1 1 from inserted) goto start if exists (select top 1 1 from deleted) goto start return start: declare @GenProcID varchar(383) select @GenProcID = dbo.QBM_FGISessionContext('') if update(UID_DialogObject) or update(PreprocessorCondition) begin insert into @ConditionsToCheck4 (ContentFull) select i.PreProcessorCondition from inserted i exec QBM_PPrePropCheckSyntax @ConditionsToCheck declare @DBQueueElements_01 QBM_YDBQueueRaw5 insert into @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select uid_QBMTreeResult as uid from inserted ) as6 x exec QBM_PDBQueueInsert_Bulk 'QBM-K-CommonPrepropTreeResult', @DBQueueElements_01 end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR7 ('', 18, 1) WITH NOWAIT END CATCH end 8