Back to OIM Explorer

dbo.RPS_TIRPSReport

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on RPSReport. Bulk DBQueue insert -> RPS-K-PrepropRPSReport / RPS_ZPrePropRPSReport at line 5; References QBM_PDBQueueInsert_Bulk; Trigger parent table: RPSReport

Source: sandbox-db sys.sql_modules

Source size: 835 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 -> RPS-K-PrepropRPSReport / RPS_ZPrePropRPSReport at line 5
  • References QBM_PDBQueueInsert_Bulk
  • Trigger parent table: RPSReport

Typed Edges

  • queues DBQueue task RPS_ZPrePropRPSReport at line 5 Bulk DBQueue insert -> RPS-K-PrepropRPSReport / RPS_ZPrePropRPSReport at line 5
  • trigger on table RPSReport Trigger parent table: RPSReport
  • references source dbo.QBM_FGISessionContext source text reference
  • references source dbo.QBM_PDBQueueInsert_Bulk source text reference
  • references source dbo.QBM_PPrePropCheckSyntax source text reference
  • references source dbo.QBM_PSessionErrorAdd source text reference

References

Referenced By

  • No direct source references extracted.

Complete Source

SQL42 lines
1CREATE trigger RPS_TIRPSReport2  ON RPSReport FOR3INSERT NOT FOR Replication4AS5BEGIN6  DECLARE @ConditionsToCheck QBM_YParameterList7  BEGIN TRY8    IF EXISTS(9      SELECT TOP 1 110      FROM inserted)11    GOTO start12    RETURN start:13    DECLARE @GenProcID varchar(38)14    SELECT @GenProcID = dbo.QBM_FGISessionContext('')15    INSERT INTO @ConditionsToCheck(ContentFull)16    SELECT i.PreProcessorCondition17    FROM inserted i18    EXEC QBM_PPrePropCheckSyntax @ConditionsToCheck19    DECLARE @DBQueueElements_01 QBM_YDBQueueRaw20    INSERT INTO @DBQueueElements_01(object,21    subobject,22    genprocid)23    SELECT24      x.uid,25      NULL,26      @GenProcID27    FROM(28    SELECT i.UID_RPSReport AS uid29    FROM inserted i) AS x30    EXEC QBM_PDBQueueInsert_Bulk 'RPS-K-PrepropRPSReport',31      @DBQueueElements_0132  END TRY33  BEGIN CATCH34    EXEC QBM_PSessionErrorAdd DEFAULT35    RAISERROR('',36    18,37    1)38      WITH NOWAIT39  END CATCH40  ende:41  RETURN42END
Open raw exported source
SQL ยท Raw7 lines
1  create   trigger RPS_TIRPSReport on RPSReport  for INSERT not for Replication as begin  declare @ConditionsToCheck QBM_YParameterList BEGIN TRY2 if exists (select top 1 1 from inserted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('')  insert3 into @ConditionsToCheck (ContentFull) select i.PreProcessorCondition from inserted i exec QBM_PPrePropCheckSyntax @ConditionsToCheck  declare @DBQueueElements_014 QBM_YDBQueueRaw insert into @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select i.UID_RPSReport as uid from5 inserted i ) as x exec QBM_PDBQueueInsert_Bulk 'RPS-K-PrepropRPSReport', @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR6 ('', 18, 1) WITH NOWAIT END CATCH ende: return end 7