Back to OIM Explorer

dbo.ATT_TUOrgRoot

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on OrgRoot. Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 3; References QBM_PDBQueueInsert_Single; Trigger parent table: OrgRoot

Source: sandbox-db sys.sql_modules

Source size: 561 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-CommonReCalculate / QBM_ZRecalculate at line 3
  • References QBM_PDBQueueInsert_Single
  • Trigger parent table: OrgRoot

Typed Edges

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

SQL36 lines
1CREATE trigger ATT_TUOrgRoot2  ON OrgRoot 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    IF19    UPDATE(UID_OrgAttestator)20    BEGIN21      EXEC QBM_PDBQueueInsert_Single 'QBM-K-CommonReCalculate',22      'ATT-K-AttestationHelper',23      '',24        @GenProcID25    END26  END TRY27  BEGIN CATCH28    EXEC QBM_PSessionErrorAdd DEFAULT29    RAISERROR('',30    18,31    1)32      WITH NOWAIT33  END CATCH34  ende:35  RETURN36END
Open raw exported source
SQL ยท Raw5 lines
1    create   trigger ATT_TUOrgRoot on OrgRoot  for UPDATE not for Replication as begin  BEGIN TRY if exists (select top 1 1 from inserted) goto 2start if exists (select top 1 1 from deleted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('')3 if update(UID_OrgAttestator) begin   exec QBM_PDBQueueInsert_Single 'QBM-K-CommonReCalculate', 'ATT-K-AttestationHelper', '', @GenProcID end  END TRY 4BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 5