Back to OIM Explorer

dbo.RMS_TIESetCollection

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on ESetCollection. Bulk DBQueue insert -> RMS-K-ESetHasEntitlement / RMS_ZESetHasEntitlement at line 4; References QBM_PDBQueueInsert_Bulk; Trigger parent table: ESetCollection

Source: sandbox-db sys.sql_modules

Source size: 702 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 -> RMS-K-ESetHasEntitlement / RMS_ZESetHasEntitlement at line 4
  • References QBM_PDBQueueInsert_Bulk
  • Trigger parent table: ESetCollection

Typed Edges

  • queues DBQueue task RMS_ZESetHasEntitlement at line 4 Bulk DBQueue insert -> RMS-K-ESetHasEntitlement / RMS_ZESetHasEntitlement at line 4
  • trigger on table ESetCollection Trigger parent table: ESetCollection
  • 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 source dbo.RMS_TIESet source text reference

References

Referenced By

  • No direct source references extracted.

Complete Source

SQL40 lines
1CREATE trigger RMS_TIESetCollection2  ON ESetCollection FOR3INSERT NOT FOR Replication4AS5BEGIN6  BEGIN TRY7    IF EXISTS(8      SELECT TOP 1 19      FROM inserted)10    GOTO start11    RETURN start:12    DECLARE @GenProcID varchar(38)13    SELECT @GenProcID = dbo.QBM_FGISessionContext('')14    DECLARE @DBQueueElements_01 QBM_YDBQueueRaw15    INSERT INTO @DBQueueElements_01(object,16    subobject,17    genprocid)18    SELECT19      x.uid,20      NULL,21      @GenProcID22    FROM(23    SELECT d.UID_ESet AS uid24    FROM inserted d25    UNION26    SELECT d.UID_EsetChild AS uid27    FROM inserted d) AS x28    EXEC QBM_PDBQueueInsert_Bulk 'RMS-K-ESetHasEntitlement',29      @DBQueueElements_0130  END TRY31  BEGIN CATCH32    EXEC QBM_PSessionErrorAdd DEFAULT33    RAISERROR('',34    18,35    1)36      WITH NOWAIT37  END CATCH38  ende:39  RETURN40END
Open raw exported source
SQL ยท Raw6 lines
1create   trigger RMS_TIESetCollection on ESetCollection  for Insert not for Replication as begin  BEGIN TRY if exists (select top 1 1 from inserted2) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('') declare @DBQueueElements_01 QBM_YDBQueueRaw3 insert into @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select d.UID_ESet as uid from inserted d union select4 d.UID_EsetChild as uid from inserted d ) as x exec QBM_PDBQueueInsert_Bulk 'RMS-K-ESetHasEntitlement', @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd5 default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 6