Back to OIM Explorer

dbo.QBM_TIAssembly_QBMEvent

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on QBMEvent. Bulk DBQueue insert -> QBM-K-ScriptAssemblyReset / QBM_ZScriptAssemblyReset at line 4; References QBM_PDBQueueInsert_Bulk; Trigger parent table: QBMEvent

Source: sandbox-db sys.sql_modules

Source size: 666 characters

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: QBMEvent

Typed Edges

  • queues DBQueue task QBM_ZScriptAssemblyReset at line 4 Bulk DBQueue insert -> QBM-K-ScriptAssemblyReset / QBM_ZScriptAssemblyReset at line 4
  • trigger on table QBMEvent Trigger parent table: QBMEvent
  • 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

Referenced By

  • No direct source references extracted.

Complete Source

SQL37 lines
1CREATE trigger QBM_TIAssembly_QBMEvent2  ON QBMEvent 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      'JobGen',19      dbo.QBM_FGITableName(i.UID_DialogTable),20      @GenProcID21    FROM inserted i22    UNION23    SELECT24      'TypedWrappers',25      '#',26      @GenProcID27    EXEC QBM_PDBQueueInsert_Bulk 'QBM-K-ScriptAssemblyReset',28      @DBQueueElements_0129  END TRY30  BEGIN CATCH31    EXEC QBM_PSessionErrorAdd DEFAULT32    RAISERROR('',33    18,34    1)35      WITH NOWAIT36  END CATCH37END
Open raw exported source
SQL ยท Raw6 lines
1   create   trigger QBM_TIAssembly_QBMEvent on QBMEvent  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  'JobGen', dbo.QBM_FGITableName(i.UID_DialogTable) , @GenProcID from inserted i  union select 'TypedWrappers', '#'4, @GenProcID exec QBM_PDBQueueInsert_Bulk 'QBM-K-ScriptAssemblyReset', @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR5 ('', 18, 1) WITH NOWAIT END CATCH end 6