dbo.QBM_TUDialogCustomizer
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-CommonPrePropCustomizer / QBM_ZPrePropCustomizer at line 6
- References QBM_PDBQueueInsert_Bulk
- Trigger parent table: DialogCustomizer
Typed Edges
- queues DBQueue task QBM_ZPrePropCustomizer at line 6 Bulk DBQueue insert -> QBM-K-CommonPrePropCustomizer / QBM_ZPrePropCustomizer at line 6
- trigger on table DialogCustomizer Trigger parent table: DialogCustomizer
- 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
- dbo.QBM_FGISessionContext
- dbo.QBM_PDBQueueInsert_Bulk
- dbo.QBM_PPrePropCheckSyntax
- dbo.QBM_PSessionErrorAdd
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger QBM_TUDialogCustomizer2 ON DialogCustomizer 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 i.UID_Customizer AS UID36 FROM DialogCustomizer i37 JOIN deleted d38 ON i.UID_Customizer = d.UID_Customizer AND isnull(i.preprocessorcondition, N '') <> isnull(d.preprocessorcondition,39 N '')) AS x40 EXEC QBM_PDBQueueInsert_Bulk 'QBM-K-CommonPrePropCustomizer',41 @DBQueueElements_0142 END43 END TRY44 BEGIN CATCH45 EXEC QBM_PSessionErrorAdd DEFAULT46 RAISERROR('',47 18,48 1)49 WITH NOWAIT50 END CATCH51END
Open raw exported source
1 create trigger QBM_TUDialogCustomizer on DialogCustomizer for Update not for Replication as begin declare @ConditionsToCheck QBM_YParameterList2 BEGIN 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 varchar3(38) 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 i.UID_Customizer as UID from DialogCustomizer i join deleted d on i.UID_Customizer = 6d.UID_Customizer and isnull(i.preprocessorcondition,N'') <> isnull(d.preprocessorcondition,N'') ) as x exec QBM_PDBQueueInsert_Bulk 'QBM-K-CommonPrePropCustomizer'7, @DBQueueElements_01 end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH end 8