Back to OIM Explorer

dbo.TSB_TDUNSGroupBInUNSGroupB

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on UNSGroupBInUNSGroupB. Bulk DBQueue insert -> TSB-K-UNSGroupBInUNSGroupB / TSB_ZUNSGroupBInUNSGroupB at line 8; References QBM_PDBQueueInsert_Bulk; Trigger parent table: UNSGroupBInUNSGroupB

Source: sandbox-db sys.sql_modules

Source size: 1.243 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 -> TSB-K-UNSGroupBInUNSGroupB / TSB_ZUNSGroupBInUNSGroupB at line 8
  • References QBM_PDBQueueInsert_Bulk
  • Trigger parent table: UNSGroupBInUNSGroupB

Typed Edges

  • queues DBQueue task TSB_ZUNSGroupBInUNSGroupB at line 8 Bulk DBQueue insert -> TSB-K-UNSGroupBInUNSGroupB / TSB_ZUNSGroupBInUNSGroupB at line 8
  • trigger on table UNSGroupBInUNSGroupB Trigger parent table: UNSGroupBInUNSGroupB
  • 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.TSB_TDUNSGroupB source text reference

References

Referenced By

  • No direct source references extracted.

Complete Source

SQL60 lines
1CREATE trigger TSB_TDUNSGroupBInUNSGroupB2  ON UNSGroupBInUNSGroupB FOR3DELETE NOT FOR Replication4AS5BEGIN6  IF EXISTS(7    SELECT TOP 1 18    FROM deleted)9  GOTO start10  RETURN start:11  BEGIN TRY12    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 uid_UNSGroupBParent AS uid24    FROM deleted25    UNION26    SELECT UID_UNSGroupBChild27    FROM deleted28    UNION29    SELECT co.uid_UNSGroupBParent AS uid30    FROM deleted i31    JOIN UNSGroupBcollection co32      ON i.UID_UNSGroupBChild = co.UID_UNSGroupBChild33    UNION34    SELECT co.uid_UNSGroupBParent35    FROM deleted i36    JOIN UNSGroupBcollection co37      ON i.UID_UNSGroupBParent = co.UID_UNSGroupBChild38    UNION39    SELECT co.UID_UNSGroupBChild40    FROM deleted i41    JOIN UNSGroupBcollection co42      ON i.UID_UNSGroupBChild = co.UID_UNSGroupBParent43    UNION44    SELECT co.UID_UNSGroupBChild45    FROM deleted i46    JOIN UNSGroupBcollection co47      ON i.UID_UNSGroupBParent = co.UID_UNSGroupBParent) AS x48    EXEC QBM_PDBQueueInsert_Bulk 'TSB-K-UNSGroupBInUNSGroupB',49      @DBQueueElements_0150  END TRY51  BEGIN CATCH52    EXEC QBM_PSessionErrorAdd DEFAULT53    RAISERROR('',54    18,55    1)56      WITH NOWAIT57  END CATCH58  ende:59  RETURN60END
Open raw exported source
SQL ยท Raw10 lines
1create   trigger TSB_TDUNSGroupBInUNSGroupB on UNSGroupBInUNSGroupB  for Delete not for Replication as begin  if exists (select top 21 1 from deleted) goto start return start: BEGIN TRY declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('') declare @DBQueueElements_013 QBM_YDBQueueRaw insert into @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select uid_UNSGroupBParent as 4uid from deleted union select UID_UNSGroupBChild from deleted union  select co.uid_UNSGroupBParent as uid from deleted i join UNSGroupBcollection5 co on i.UID_UNSGroupBChild = co.UID_UNSGroupBChild  union select co.uid_UNSGroupBParent from deleted i join UNSGroupBcollection co on i.UID_UNSGroupBParent6 = co.UID_UNSGroupBChild  union select co.UID_UNSGroupBChild from deleted i join UNSGroupBcollection co on i.UID_UNSGroupBChild = co.UID_UNSGroupBParent7  union select co.UID_UNSGroupBChild from deleted i join UNSGroupBcollection co on i.UID_UNSGroupBParent = co.UID_UNSGroupBParent ) as x exec8 QBM_PDBQueueInsert_Bulk 'TSB-K-UNSGroupBInUNSGroupB', @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 189, 1) WITH NOWAIT END CATCH ende: return end 10