Back to OIM Explorer

dbo.RPS_TDRPSSubscription

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on RPSSubscription. Bulk DBQueue insert -> RPS-K-PersonHasObject / RPS_ZPersonHasObject at line 3; References QBM_PDBQueueInsert_Bulk; Trigger parent table: RPSSubscription

Source: sandbox-db sys.sql_modules

Source size: 644 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-PersonHasObject / RPS_ZPersonHasObject at line 3
  • References QBM_PDBQueueInsert_Bulk
  • Trigger parent table: RPSSubscription

Typed Edges

  • queues DBQueue task RPS_ZPersonHasObject at line 3 Bulk DBQueue insert -> RPS-K-PersonHasObject / RPS_ZPersonHasObject at line 3
  • trigger on table RPSSubscription Trigger parent table: RPSSubscription
  • references source dbo.QBM_FGISessionContext 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 RPS_TDRPSSubscription2  ON RPSSubscription FOR3DELETE NOT FOR Replication4AS5BEGIN6  DECLARE @GenProcID varchar(38) = dbo.QBM_FGISessionContext('')7  BEGIN TRY8    IF EXISTS(9      SELECT TOP 1 110      FROM deleted)11    GOTO start12    RETURN start:13    DECLARE @DBQueueElements_PHO QBM_YDBQueueRaw14    INSERT INTO @DBQueueElements_PHO(object,15    subobject,16    genprocid)17    SELECT18      x.uid,19      NULL,20      @GenProcID21    FROM(22    SELECT23      DISTINCT d.UID_Person AS uid24    FROM deleted d) AS x25    EXEC QBM_PDBQueueInsert_Bulk 'RPS-K-PersonHasObject',26      @DBQueueElements_PHO27  END TRY28  BEGIN CATCH29    EXEC QBM_PSessionErrorAdd DEFAULT30    RAISERROR('',31    18,32    1)33      WITH NOWAIT34  END CATCH35  ende:36  RETURN37END
Open raw exported source
SQL ยท Raw6 lines
1create   trigger RPS_TDRPSSubscription on RPSSubscription  for delete not for Replication as begin declare @GenProcID varchar(38) = dbo.QBM_FGISessionContext2('') BEGIN TRY if exists (select top 1 1 from deleted) goto start return start:  declare @DBQueueElements_PHO QBM_YDBQueueRaw insert into @DBQueueElements_PHO3 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select distinct d.UID_Person as uid from deleted d ) as x exec QBM_PDBQueueInsert_Bulk4 'RPS-K-PersonHasObject', @DBQueueElements_PHO  END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende:5 return end 6