dbo.LDP_TILDAPGroupExclusion

SQL_TRIGGER parent LDAPGroupExclusion

Created 2026-04-14T23:20:50.123 · modified 2026-04-14T23:23:08.403 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
No parameters.

Referenced objects

SchemaObjectColumn/minorClass
BaseTreeHasLDAPGroupOBJECT_OR_COLUMN
insertedOBJECT_OR_COLUMN
LDAPAccountInLDAPGroupOBJECT_OR_COLUMN
LDAPGroupOBJECT_OR_COLUMN
LDAPGroupCollectionOBJECT_OR_COLUMN
LDPMachineInLDAPGroupOBJECT_OR_COLUMN
QBM_PDBQueueInsert_BulkOBJECT_OR_COLUMN
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QBM_YDBQueueRawTYPE
QBM_YParameterListTYPE
QER_PExclusionCheckCircularOBJECT_OR_COLUMN
dboQBM_FGIConfigparmValueOBJECT_OR_COLUMN
dboQBM_FGISessionContextOBJECT_OR_COLUMN

Source excerpt

First extracted SQL definition lines from the exported source. Use the full source page for complete context.

Open full formatted source

1    create   trigger LDP_TILDAPGroupExclusion on LDAPGroupExclusion  for Insert not for Replication as begin  declare @exclusions QBM_YParameterList
2 BEGIN TRY if exists (select top 1 1 from inserted) goto start return start:  declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext
3('') if dbo.QBM_FGIConfigparmValue('QER\Structures\Inherite\GroupExclusion') = '' begin raiserror( '#LDS#Cannot make a definition because exclusion is not enabled by config parm.|'
4, 18, 2) with nowait end insert into @exclusions (Parameter1, Parameter2) select UID_LDAPGroupHigher, UID_LDAPGroupLower from inserted exec QER_PExclusionCheckCircular
5 @TargetTable = 'LDAPGroupExclusion' , @HigherColumn = 'UID_LDAPGroupHigher' , @LowerColumn = 'UID_LDAPGroupLower' , @exclusions = @exclusions  if exists
6 (select top 1 1 from LDAPGroup t join inserted i on t.uid_LDAPGroup = i.uid_LDAPGroupLower and t.IsDynamicGroup = 1 ) or exists (select top 1 1 from LDAPGroup
7 t join inserted i on t.uid_LDAPGroup = i.uid_LDAPGroupHigher and t.IsDynamicGroup = 1 ) begin  raiserror('#LDS#Cannot make assignment because dynamic groups are involved.|'
8, 18, 1) with nowait end  declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null
9, @GenProcID from ( select uig.uid_LDAPAccount as uid from ( select UID_LDAPGroupLower as UID_LDAPGroup from inserted union select UID_LDAPGroupHigher 
10from inserted ) as y  join LDAPGroupCollection coll on y.UID_LDAPGroup = coll.UID_LDAPGroupParent join LDAPAccountInLDAPGroup uig on coll.UID_LDAPGroupChild
11 = uig.uid_LDAPGroup and uig.XOrigin > 0  ) as x exec QBM_PDBQueueInsert_Bulk 'LDP-K-LDAPAccountInLDAPGroup', @DBQueueElements_01  declare @DBQueueElements_02
12 QBM_YDBQueueRaw insert into @DBQueueElements_02 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select uig.uid_LDPMachine as uid 
13from ( select UID_LDAPGroupLower as UID_LDAPGroup from inserted union select UID_LDAPGroupHigher from inserted ) as y  join LDAPGroupCollection coll on
14 y.UID_LDAPGroup = coll.UID_LDAPGroupParent join LDPMachineInLDAPGroup uig on coll.UID_LDAPGroupChild = uig.uid_LDAPGroup and uig.XOrigin > 0  ) as x exec
15 QBM_PDBQueueInsert_Bulk 'LDP-K-LDPMachineInLDAPGroup', @DBQueueElements_02  declare @DBQueueElements_03 QBM_YDBQueueRaw insert into @DBQueueElements_03
16 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select g.UID_Org as uid from ( select UID_LDAPGroupLower as UID_LDAPGroup from inserted
17 union select UID_LDAPGroupHigher from inserted ) as y join BaseTreeHasLDAPGroup g on y.UID_LDAPGroup = g.UID_LDAPGroup ) as x exec QBM_PDBQueueInsert_Bulk
18 'LDP-K-OrgHasLDAPGroup', @DBQueueElements_03 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return
19 end 
20

Module relation graph

Loading module relation graph…

Source-derived context

Generated from exported SQL module definitions plus read-only sandbox sys.objects/sys.parameters/sys.sql_expression_dependencies metadata. This is factual source evidence, not a semantic guess.

provenance: SQL definition export provenance: sandbox DB metadata modified: 2026-04-14T23:23:08.403

inserts DBQueue tasks uses session context values has TRY/CATCH error handling

Summary: calls QER_PExclusionCheckCircular, QBM_PDBQueueInsert_Bulk, QBM_PSessionErrorAdd; writes INSERT not, INSERT into; reads/joins inserted, LDAPGroup, LDAPGroupCollection, LDAPAccountInLDAPGroup, LDPMachineInLDAPGroup…; uses config QER\Structures\Inherite\GroupExclusion

Declared parameters

No declared parameters in sys.parameters for this object, or metadata was not available.

DML targets

INSERT not INSERT into

Config/session

Config: QER\Structures\Inherite\GroupExclusion

Session: None extracted.

DBQueue/tasks

LDP-K-LDAPAccountInLDAPGroup LDP-K-LDPMachineInLDAPGroup LDP-K-OrgHasLDAPGroup

Temp tables / referenced variables

Temp: #LDS #Cannot

Variables: @exclusions @GenProcID @TargetTable @HigherColumn @LowerColumn @DBQueueElements_01 @DBQueueElements_02 @DBQueueElements_03

Referenced by / reverse dependencies

Generated from live DB metadata, FK rows, and exported SQL dependency/source extraction. This is factual linkage evidence, not inferred behavior.

No reverse dependencies extracted.