dbo.QBM_TIDialogObjectHasSheet
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-CommonPrepropSheet / QBM_ZPrePropSheet at line 4
- References QBM_PDBQueueInsert_Bulk
- Trigger parent table: DialogObjectHasSheet
Typed Edges
- queues DBQueue task QBM_ZPrePropSheet at line 4 Bulk DBQueue insert -> QBM-K-CommonPrepropSheet / QBM_ZPrePropSheet at line 4
- trigger on table DialogObjectHasSheet Trigger parent table: DialogObjectHasSheet
- references source dbo.QBM_FGISessionContext source text reference
- references source dbo.QBM_PDBQueueInsert_Bulk source text reference
- references source dbo.QBM_PSessionErrorAdd source text reference
- references source dbo.QBM_TIDialogObject source text reference
References
- dbo.QBM_FGISessionContext
- dbo.QBM_PDBQueueInsert_Bulk
- dbo.QBM_PSessionErrorAdd
- dbo.QBM_TIDialogObject
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger QBM_TIDialogObjectHasSheet2 ON DialogObjectHasSheet FOR3INSERT NOT FOR Replication4AS5BEGIN6 BEGIN TRY7 IF EXISTS(8 SELECT TOP 1 19 FROM inserted)10 GOTO start11 RETURN start:12 DECLARE @GenProcID varchar(38)13 SELECT @GenProcID = dbo.QBM_FGISessionContext('')14 DECLARE @DBQueueElements_01 QBM_YDBQueueRaw15 INSERT INTO @DBQueueElements_01(object,16 subobject,17 genprocid)18 SELECT19 x.uid,20 NULL,21 @GenProcID22 FROM(23 SELECT24 DISTINCT uid_DialogSheet AS uid25 FROM inserted) AS x26 EXEC QBM_PDBQueueInsert_Bulk 'QBM-K-CommonPrepropSheet',27 @DBQueueElements_0128 END TRY29 BEGIN CATCH30 EXEC QBM_PSessionErrorAdd DEFAULT31 RAISERROR('',32 18,33 1)34 WITH NOWAIT35 END CATCH36END
Open raw exported source
1 create trigger QBM_TIDialogObjectHasSheet on DialogObjectHasSheet for Insert not for Replication as begin BEGIN TRY if exists (select top 21 1 from inserted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('') declare @DBQueueElements_013 QBM_YDBQueueRaw insert into @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select distinct uid_DialogSheet as4 uid from inserted ) as x exec QBM_PDBQueueInsert_Bulk 'QBM-K-CommonPrepropSheet', @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default5 RAISERROR ('', 18, 1) WITH NOWAIT END CATCH end 6