dbo.QBM_TUDialogReport
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-CommonPrepropReport / QBM_ZPrePropReport at line 6
- References QBM_PDBQueueInsert_Bulk
- Trigger parent table: DialogReport
Typed Edges
- queues DBQueue task QBM_ZPrePropReport at line 6 Bulk DBQueue insert -> QBM-K-CommonPrepropReport / QBM_ZPrePropReport at line 6
- trigger on table DialogReport Trigger parent table: DialogReport
- 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_TUDialogReport2 ON DialogReport 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(PreprocessorCondition)21 BEGIN22 INSERT INTO @ConditionsToCheck(ContentFull)23 SELECT i.PreProcessorCondition24 FROM inserted i25 EXEC QBM_PPrePropCheckSyntax @ConditionsToCheck26 DECLARE @DBQueueElements_01 QBM_YDBQueueRaw27 INSERT INTO @DBQueueElements_01(object,28 subobject,29 genprocid)30 SELECT31 x.uid,32 NULL,33 @GenProcID34 FROM(35 SELECT t.uid_DialogReport AS uid36 FROM deleted d37 JOIN DialogReport t38 ON d.uid_DialogReport = t.UID_DialogReport39 WHERE40 isnull(d.PreprocessorCondition, N '') <> isnull(t.PreprocessorCondition, N '')) AS x41 EXEC QBM_PDBQueueInsert_Bulk 'QBM-K-CommonPrepropReport',42 @DBQueueElements_0143 END44 END TRY45 BEGIN CATCH46 EXEC QBM_PSessionErrorAdd DEFAULT47 RAISERROR('',48 18,49 1)50 WITH NOWAIT51 END CATCH52END
Open raw exported source
1create trigger QBM_TUDialogReport on DialogReport 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(PreprocessorCondition) begin insert into @ConditionsToCheck (ContentFull) select i.PreProcessorCondition4 from inserted i exec QBM_PPrePropCheckSyntax @ConditionsToCheck declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_01 (object, 5subobject, genprocid) select x.uid, null, @GenProcID from ( select t.uid_DialogReport as uid from deleted d join DialogReport t on d.uid_DialogReport =6 t.UID_DialogReport where isnull(d.PreprocessorCondition, N'') <> isnull(t.PreprocessorCondition, N'') ) as x exec QBM_PDBQueueInsert_Bulk 'QBM-K-CommonPrepropReport'7, @DBQueueElements_01 end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH end 8