Back to OIM Explorer

dbo.QBM_TUJobTask

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on JobTask. Single DBQueue insert -> QBM-K-JobPerformanceFill / QBM_ZJobPerformanceFill at line 3; References QBM_PDBQueueInsert_Single; Trigger parent table: JobTask

Source: sandbox-db sys.sql_modules

Source size: 483 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

  • Single DBQueue insert -> QBM-K-JobPerformanceFill / QBM_ZJobPerformanceFill at line 3
  • References QBM_PDBQueueInsert_Single
  • Trigger parent table: JobTask

Typed Edges

  • queues DBQueue task QBM_ZJobPerformanceFill at line 3 Single DBQueue insert -> QBM-K-JobPerformanceFill / QBM_ZJobPerformanceFill at line 3
  • trigger on table JobTask Trigger parent table: JobTask
  • references source dbo.QBM_FGISessionContext source text reference
  • references source dbo.QBM_PDBQueueInsert_Single source text reference
  • references source dbo.QBM_PSessionErrorAdd source text reference
  • references source dbo.QBM_TUJob source text reference

References

Referenced By

  • No direct source references extracted.

Complete Source

SQL30 lines
1CREATE trigger QBM_TUJobTask2  ON JobTask FOR3UPDATE NOT FOR Replication4AS5BEGIN6  BEGIN TRY7    IF EXISTS(8      SELECT TOP 1 19      FROM inserted)10    GOTO start11    IF EXISTS(12      SELECT TOP 1 113      FROM deleted)14    GOTO start15    RETURN start:16    DECLARE @GenProcID varchar(38)17    SELECT @GenProcID = dbo.QBM_FGISessionContext('')18    EXEC QBM_PDBQueueInsert_Single 'QBM-K-JobPerformanceFill',19    '',20    '',21      @GenProcID22  END TRY23  BEGIN CATCH24    EXEC QBM_PSessionErrorAdd DEFAULT25    RAISERROR('',26    18,27    1)28      WITH NOWAIT29  END CATCH30END
Open raw exported source
SQL ยท Raw5 lines
1 create   trigger QBM_TUJobTask on JobTask  for update not for Replication as begin   BEGIN TRY if exists (select top 1 1 from inserted) goto start2 if exists (select top 1 1 from deleted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('') exec3 QBM_PDBQueueInsert_Single 'QBM-K-JobPerformanceFill', '', '', @GenProcID  END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) 4WITH NOWAIT END CATCH end 5