Back to OIM Explorer

dbo.ADS_TIADSDomain

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on ADSDomain. Bulk DBQueue insert -> ADS-K-BaseTreeOwnsObject / ADS_ZBaseTreeOwnsObject at line 3; References QBM_PDBQueueInsert_Bulk; Trigger parent table: ADSDomain

Source: sandbox-db sys.sql_modules

Source size: 652 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 -> ADS-K-BaseTreeOwnsObject / ADS_ZBaseTreeOwnsObject at line 3
  • References QBM_PDBQueueInsert_Bulk
  • Trigger parent table: ADSDomain

Typed Edges

  • queues DBQueue task ADS_ZBaseTreeOwnsObject at line 3 Bulk DBQueue insert -> ADS-K-BaseTreeOwnsObject / ADS_ZBaseTreeOwnsObject at line 3
  • trigger on table ADSDomain Trigger parent table: ADSDomain
  • 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 ADS_TIADSDomain2  ON ADSDomain FOR3INSERT NOT FOR Replication4AS5BEGIN6  DECLARE @GenProcID varchar(38)7  BEGIN TRY8    IF EXISTS(9      SELECT TOP 1 110      FROM inserted)11    GOTO start12    RETURN start: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 i.UID_ADSDomain AS uid24    FROM inserted i) AS x25    EXEC QBM_PDBQueueInsert_Bulk 'ADS-K-BaseTreeOwnsObject',26      @DBQueueElements_0127  END TRY28  BEGIN CATCH29    EXEC QBM_PSessionErrorAdd DEFAULT30    RAISERROR('',31    18,32    1)33      WITH NOWAIT34  END CATCH35  endLabel:36  RETURN37END
Open raw exported source
SQL ยท Raw6 lines
1    create   trigger ADS_TIADSDomain on ADSDomain  for Insert not for Replication as begin declare @GenProcID varchar(38) BEGIN TRY if exists (select2 top 1 1 from inserted) goto start return start: select @GenProcID = dbo.QBM_FGISessionContext('') declare @DBQueueElements_01 QBM_YDBQueueRaw insert into3 @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select i.UID_ADSDomain as uid from inserted i ) as x exec QBM_PDBQueueInsert_Bulk4 'ADS-K-BaseTreeOwnsObject', @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH endLabel:5 return end 6