Back to OIM Explorer

dbo.LDP_TDLDAPGroupInLDAPGroup

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on LDAPGroupInLDAPGroup. Bulk DBQueue insert -> LDP-K-LDAPGroupInLDAPGroup / LDP_ZGroupInLDAPGroup at line 7; References QBM_PDBQueueInsert_Bulk; Trigger parent table: LDAPGroupInLDAPGroup

Source: sandbox-db sys.sql_modules

Source size: 1.241 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-LDAPGroupInLDAPGroup / LDP_ZGroupInLDAPGroup at line 7
  • References QBM_PDBQueueInsert_Bulk
  • Trigger parent table: LDAPGroupInLDAPGroup

Typed Edges

  • queues DBQueue task LDP_ZGroupInLDAPGroup at line 7 Bulk DBQueue insert -> LDP-K-LDAPGroupInLDAPGroup / LDP_ZGroupInLDAPGroup at line 7
  • trigger on table LDAPGroupInLDAPGroup Trigger parent table: LDAPGroupInLDAPGroup
  • 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

SQL60 lines
1CREATE trigger LDP_TDLDAPGroupInLDAPGroup2  ON LDAPGroupInLDAPGroup 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_LDAPGroupParent AS uid24    FROM deleted25    UNION26    SELECT UID_LDAPGroupChild27    FROM deleted28    UNION29    SELECT co.uid_LDAPGroupParent AS uid30    FROM deleted i31    JOIN LDAPGroupcollection co32      ON i.UID_LDAPGroupChild = co.UID_LDAPGroupChild33    UNION34    SELECT co.uid_LDAPGroupParent35    FROM deleted i36    JOIN LDAPGroupcollection co37      ON i.UID_LDAPGroupParent = co.UID_LDAPGroupChild38    UNION39    SELECT co.UID_LDAPGroupChild40    FROM deleted i41    JOIN LDAPGroupcollection co42      ON i.UID_LDAPGroupChild = co.UID_LDAPGroupParent43    UNION44    SELECT co.UID_LDAPGroupChild45    FROM deleted i46    JOIN LDAPGroupcollection co47      ON i.UID_LDAPGroupParent = co.UID_LDAPGroupParent) AS x48    EXEC QBM_PDBQueueInsert_Bulk 'LDP-K-LDAPGroupInLDAPGroup',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 ยท Raw9 lines
1create   trigger LDP_TDLDAPGroupInLDAPGroup on LDAPGroupInLDAPGroup  for Delete not for Replication as begin  if exists (select top 1 1 from deleted2) goto start return start: BEGIN TRY 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 uid_LDAPGroupParent as uid from deleted union4 select UID_LDAPGroupChild from deleted union  select co.uid_LDAPGroupParent as uid from deleted i join LDAPGroupcollection co on i.UID_LDAPGroupChild 5= co.UID_LDAPGroupChild  union select co.uid_LDAPGroupParent from deleted i join LDAPGroupcollection co on i.UID_LDAPGroupParent = co.UID_LDAPGroupChild6  union select co.UID_LDAPGroupChild from deleted i join LDAPGroupcollection co on i.UID_LDAPGroupChild = co.UID_LDAPGroupParent  union select co.UID_LDAPGroupChild7 from deleted i join LDAPGroupcollection co on i.UID_LDAPGroupParent = co.UID_LDAPGroupParent ) as x exec QBM_PDBQueueInsert_Bulk 'LDP-K-LDAPGroupInLDAPGroup'8, @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 9