Back to OIM Explorer

dbo.LDP_TULDAPContainer

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on LDAPContainer. Bulk DBQueue insert -> LDP-K-BaseTreeOwnsObject / LDP_ZBaseTreeOwnsObject at line 4; References QBM_PDBQueueInsert_Bulk; Trigger parent table: LDAPContainer

Source: sandbox-db sys.sql_modules

Source size: 1.060 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 -> LDP-K-BaseTreeOwnsObject / LDP_ZBaseTreeOwnsObject at line 4
  • References QBM_PDBQueueInsert_Bulk
  • Trigger parent table: LDAPContainer

Typed Edges

  • queues DBQueue task LDP_ZBaseTreeOwnsObject at line 4 Bulk DBQueue insert -> LDP-K-BaseTreeOwnsObject / LDP_ZBaseTreeOwnsObject at line 4
  • trigger on table LDAPContainer Trigger parent table: LDAPContainer
  • 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.QER_PITShopHelperFill source text reference
  • references source dbo.QER_PITShopHelperFill_Recalc source text reference

Complete Source

SQL62 lines
1CREATE trigger LDP_TULDAPContainer2  ON LDAPContainer FOR3UPDATE NOT FOR Replication4AS5BEGIN6  BEGIN TRY7    IF EXISTS(8      SELECT TOP 1 19      FROM inserted)10    GOTO start11    IF EXISTS(12      SELECT TOP 1 113      FROM deleted)14    GOTO start15    RETURN start:16    DECLARE @GenProcID varchar(38)17    SELECT @GenProcID = dbo.QBM_FGISessionContext('')18    IF19    UPDATE(uid_AERoleOwner)20    BEGIN21      DECLARE @DBQueueElements_01 QBM_YDBQueueRaw22      INSERT INTO @DBQueueElements_01(object,23      subobject,24      genprocid)25      SELECT26        x.uid,27        NULL,28        @GenProcID29      FROM(30      SELECT d.UID_LDPDomain AS uid31      FROM deleted d) AS x32      EXEC QBM_PDBQueueInsert_Bulk 'LDP-K-BaseTreeOwnsObject',33        @DBQueueElements_0134      DECLARE @RecalcParameter_01 QBM_YCursorBuffer35      INSERT INTO @RecalcParameter_01(UID1,36      ObjectKey1,37      Ident1)38      SELECT39        'TSB-PWODecisionRule-TO',40        i.XObjectKey,41        'I'42      FROM inserted i43      UNION all44      SELECT45        'QER-PWODecisionRule-OX',46        i.XObjectKey,47        'I'48      FROM inserted i49      EXEC QER_PITShopHelperFill_Recalc @RecalcParameter_01,50        @GenprocID51    END52  END TRY53  BEGIN CATCH54    EXEC QBM_PSessionErrorAdd DEFAULT55    RAISERROR('',56    18,57    1)58      WITH NOWAIT59  END CATCH60  ende:61  RETURN62END
Open raw exported source
SQL ยท Raw8 lines
1create   trigger LDP_TULDAPContainer on LDAPContainer  for Update not for Replication as begin  BEGIN TRY if exists (select top 1 1 from inserted2) goto start if exists (select top 1 1 from deleted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext3('') if update(uid_AERoleOwner) begin declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_01 (object, subobject, genprocid) select4 x.uid, null, @GenProcID from ( select d.UID_LDPDomain as uid from deleted d ) as x exec QBM_PDBQueueInsert_Bulk 'LDP-K-BaseTreeOwnsObject', @DBQueueElements_015 declare @RecalcParameter_01 QBM_YCursorBuffer insert into @RecalcParameter_01 (UID1, ObjectKey1, Ident1) select 'TSB-PWODecisionRule-TO', i.XObjectKey6, 'I' from inserted i union all select 'QER-PWODecisionRule-OX', i.XObjectKey, 'I'  from inserted i exec QER_PITShopHelperFill_Recalc @RecalcParameter_017, @GenprocID end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 8