dbo.QBM_TIAssembly_JobEventGen
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-ScriptAssemblyReset / QBM_ZScriptAssemblyReset at line 4
- References QBM_PDBQueueInsert_Bulk
- Trigger parent table: JobEventGen
Typed Edges
- queues DBQueue task QBM_ZScriptAssemblyReset at line 4 Bulk DBQueue insert -> QBM-K-ScriptAssemblyReset / QBM_ZScriptAssemblyReset at line 4
- trigger on table JobEventGen Trigger parent table: JobEventGen
- references source dbo.QBM_FGISessionContext source text reference
- references source dbo.QBM_FGITableName source text reference
- references source dbo.QBM_PDBQueueInsert_Bulk source text reference
- references source dbo.QBM_PSessionErrorAdd source text reference
- references source dbo.QBM_TIAssembly_Job source text reference
References
- dbo.QBM_FGISessionContext
- dbo.QBM_FGITableName
- dbo.QBM_PDBQueueInsert_Bulk
- dbo.QBM_PSessionErrorAdd
- dbo.QBM_TIAssembly_Job
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger QBM_TIAssembly_JobEventGen2 ON JobEventGen FOR3INSERT NOT FOR Replication4AS5BEGIN6 DECLARE @GenProcID varchar(38) = dbo.QBM_FGISessionContext('')7 BEGIN TRY8 IF EXISTS(9 SELECT TOP 1 110 FROM inserted)11 GOTO start12 RETURN start:13 DECLARE @DBQueueElements_01 QBM_YDBQueueRaw14 INSERT INTO @DBQueueElements_01(Object,15 SubObject,16 GenProcID)17 SELECT18 DISTINCT 'JobGen',19 dbo.QBM_FGITableName(e.UID_DialogTable),20 @GenProcID21 FROM inserted i22 JOIN QBMEvent e23 ON i.UID_QBMEvent = e.UID_QBMEvent24 EXEC QBM_PDBQueueInsert_Bulk 'QBM-K-ScriptAssemblyReset',25 @DBQueueElements_0126 END TRY27 BEGIN CATCH28 EXEC QBM_PSessionErrorAdd DEFAULT29 RAISERROR('',30 18,31 1)32 WITH NOWAIT33 END CATCH34END
Open raw exported source
1 create trigger QBM_TIAssembly_JobEventGen on JobEventGen for Insert not for Replication as begin declare @GenProcID varchar(38) = dbo.QBM_FGISessionContext2('') BEGIN TRY if exists (select top 1 1 from inserted) goto start return start: declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_013(Object, SubObject, GenProcID) select distinct 'JobGen', dbo.QBM_FGITableName(e.UID_DialogTable) , @GenProcID from inserted i join QBMEvent e on i.UID_QBMEvent4 = e.UID_QBMEvent exec QBM_PDBQueueInsert_Bulk 'QBM-K-ScriptAssemblyReset', @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default 5RAISERROR ('', 18, 1) WITH NOWAIT END CATCH end 6