Back to OIM Explorer

dbo.LDP_TILDAPAccount

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on LDAPAccount. Bulk DBQueue insert -> LDP-K-PersonHasObject / LDP_ZPersonHasObject at line 4; Bulk DBQueue insert -> LDP-K-LDAPAccountInLDAPGroup / LDP_ZAccountInLDAPGroup at line 4; Bulk DBQueue insert -> LDP-K-LDAPAccountInLDAPGroup / LDP_ZAccountInLDAPGroup at line 6; References QBM_PDBQueueInsert_Bulk

Source: sandbox-db sys.sql_modules

Source size: 990 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-PersonHasObject / LDP_ZPersonHasObject at line 4
  • Bulk DBQueue insert -> LDP-K-LDAPAccountInLDAPGroup / LDP_ZAccountInLDAPGroup at line 4
  • Bulk DBQueue insert -> LDP-K-LDAPAccountInLDAPGroup / LDP_ZAccountInLDAPGroup at line 6
  • References QBM_PDBQueueInsert_Bulk
  • Trigger parent table: LDAPAccount

Typed Edges

  • queues DBQueue task LDP_ZPersonHasObject at line 4 Bulk DBQueue insert -> LDP-K-PersonHasObject / LDP_ZPersonHasObject at line 4
  • queues DBQueue task LDP_ZAccountInLDAPGroup at line 4 Bulk DBQueue insert -> LDP-K-LDAPAccountInLDAPGroup / LDP_ZAccountInLDAPGroup at line 4
  • queues DBQueue task LDP_ZAccountInLDAPGroup at line 6 Bulk DBQueue insert -> LDP-K-LDAPAccountInLDAPGroup / LDP_ZAccountInLDAPGroup at line 6
  • trigger on table LDAPAccount Trigger parent table: LDAPAccount
  • 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

Complete Source

SQL55 lines
1CREATE trigger LDP_TILDAPAccount2  ON LDAPAccount 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    SELECT24      DISTINCT uid_person AS uid25    FROM inserted26    WHERE27      uid_person > ' ') AS x28    EXEC QBM_PDBQueueInsert_Bulk 'LDP-K-PersonHasObject',29      @DBQueueElements_0130    DECLARE @DBQueueElements_02 QBM_YDBQueueRaw31    INSERT INTO @DBQueueElements_02(object,32    subobject,33    genprocid)34    SELECT35      x.uid,36      NULL,37      @GenProcID38    FROM(39    SELECT i.UID_LDAPAccount AS uid40    FROM inserted i41    WHERE42      i.uid_person > ' ') AS x43    EXEC QBM_PDBQueueInsert_Bulk 'LDP-K-LDAPAccountInLDAPGroup',44      @DBQueueElements_0245  END TRY46  BEGIN CATCH47    EXEC QBM_PSessionErrorAdd DEFAULT48    RAISERROR('',49    18,50    1)51      WITH NOWAIT52  END CATCH53  ende:54  RETURN55END
Open raw exported source
SQL ยท Raw8 lines
1    create   trigger LDP_TILDAPAccount on LDAPAccount  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 distinct uid_person as uid from inserted where4 uid_person > ' ' ) as x exec QBM_PDBQueueInsert_Bulk 'LDP-K-PersonHasObject', @DBQueueElements_01 declare @DBQueueElements_02 QBM_YDBQueueRaw insert into5 @DBQueueElements_02 (object, subobject, genprocid) select x.uid, null, @GenProcID from (select i.UID_LDAPAccount as uid from inserted i    where i.uid_person6 > ' '  ) as x exec QBM_PDBQueueInsert_Bulk 'LDP-K-LDAPAccountInLDAPGroup', @DBQueueElements_02  END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default 7RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 8