dbo.QBM_TDAssembly_DialogScript
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 3
- References QBM_PDBQueueInsert_Bulk
- Trigger parent table: DialogScript
Typed Edges
- queues DBQueue task QBM_ZScriptAssemblyReset at line 3 Bulk DBQueue insert -> QBM-K-ScriptAssemblyReset / QBM_ZScriptAssemblyReset at line 3
- trigger on table DialogScript Trigger parent table: DialogScript
- 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
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger QBM_TDAssembly_DialogScript2 ON DialogScript FOR3DELETE NOT FOR Replication4AS5BEGIN6 DECLARE @GenProcID varchar(38) = dbo.QBM_FGISessionContext('')7 BEGIN TRY8 IF EXISTS(9 SELECT TOP 1 110 FROM deleted)11 GOTO start12 RETURN start:13 DECLARE @DBQueueElements_01 QBM_YDBQueueRaw14 INSERT INTO @DBQueueElements_01(Object,15 SubObject,16 GenProcID)17 SELECT18 'Scripts',19 d.UID_DialogScript,20 @GenProcID21 FROM deleted d22 EXEC QBM_PDBQueueInsert_Bulk 'QBM-K-ScriptAssemblyReset',23 @DBQueueElements_0124 END TRY25 BEGIN CATCH26 EXEC QBM_PSessionErrorAdd DEFAULT27 RAISERROR('',28 18,29 1)30 WITH NOWAIT31 END CATCH32END
Open raw exported source
1 create trigger QBM_TDAssembly_DialogScript on DialogScript for Delete not for Replication as begin declare @GenProcID varchar(38) = dbo.QBM_FGISessionContext2('') BEGIN TRY if exists (select top 1 1 from deleted) goto start return start: declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_013(Object, SubObject, GenProcID) select 'Scripts', d.UID_DialogScript , @GenProcID from deleted d exec QBM_PDBQueueInsert_Bulk 'QBM-K-ScriptAssemblyReset'4, @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH end 5