Back to OIM Explorer

dbo.QBM_TUQBMFileHasDeployTarget

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on QBMFileHasDeployTarget. Single DBQueue insert -> QBM-K-CommonSoftwareRevision / QBM_ZSoftwareRevision at line 3; References QBM_PDBQueueInsert_Single; Trigger parent table: QBMFileHasDeployTarget

Source: sandbox-db sys.sql_modules

Source size: 524 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-CommonSoftwareRevision / QBM_ZSoftwareRevision at line 3
  • References QBM_PDBQueueInsert_Single
  • Trigger parent table: QBMFileHasDeployTarget

Typed Edges

  • queues DBQueue task QBM_ZSoftwareRevision at line 3 Single DBQueue insert -> QBM-K-CommonSoftwareRevision / QBM_ZSoftwareRevision at line 3
  • trigger on table QBMFileHasDeployTarget Trigger parent table: QBMFileHasDeployTarget
  • 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

Referenced By

  • No direct source references extracted.

Complete Source

SQL30 lines
1CREATE trigger QBM_TUQBMFileHasDeployTarget2  ON QBMFileHasDeployTarget FOR3UPDATE NOT FOR Replication4AS5BEGIN6  DECLARE @GenProcID varchar(38)7  BEGIN TRY8    IF EXISTS(9      SELECT TOP 1 110      FROM inserted)11    GOTO start12    IF EXISTS(13      SELECT TOP 1 114      FROM deleted)15    GOTO start16    RETURN start:17    SELECT @GenProcID = dbo.QBM_FGISessionContext('')18    EXEC QBM_PDBQueueInsert_Single 'QBM-K-CommonSoftwareRevision',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_TUQBMFileHasDeployTarget on QBMFileHasDeployTarget  for update not for Replication as begin  declare @GenProcID varchar(382) BEGIN TRY if exists (select top 1 1 from inserted) goto start if exists (select top 1 1 from deleted) goto start return start: select @GenProcID = dbo.QBM_FGISessionContext3('')          exec QBM_PDBQueueInsert_Single 'QBM-K-CommonSoftwareRevision', '', '', @GenProcID END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR4 ('', 18, 1) WITH NOWAIT END CATCH end 5