dbo.TSB_TIUNSGroupB2InUNSGroupB2
SQL_TRIGGER parent UNSGroupB2InUNSGroupB2
Created 2025-06-27T18:01:21.947 · modified 2026-04-14T23:23:08.897 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
| No parameters. | ||
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| DPRNameSpace | OBJECT_OR_COLUMN | ||
| inserted | OBJECT_OR_COLUMN | ||
| QBM_PDBQueueInsert_Bulk | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_YDBQueueRaw | TYPE | ||
| UNSGroupB2 | OBJECT_OR_COLUMN | ||
| UNSGroupB2collection | OBJECT_OR_COLUMN | ||
| UNSRootB | OBJECT_OR_COLUMN | ||
| dbo | QBM_FGISessionContext | OBJECT_OR_COLUMN |
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
1 create trigger TSB_TIUNSGroupB2InUNSGroupB2 on UNSGroupB2InUNSGroupB2 for Insert not for Replication as begin if exists (select top 2 1 1 from inserted) goto start return start: BEGIN TRY if exists (select top 1 1 from inserted i join UNSGroupB2 g on i.UID_UNSGroupB2Child = g.UID_UNSGroupB2 3 join UNSGroupB2 u on i.UID_UNSGroupB2Parent = u.UID_UNSGroupB2 join UNSRootB ru on u.UID_UNSRootB = ru.UID_UNSRootB join DPRNameSpace ns on ru.UID_DPRNameSpace 4 = ns.UID_DPRNameSpace join UNSRootB rg on g.UID_UNSRootB = rg.UID_UNSRootB where 0 = case when u.UID_UNSRootB = g.UID_UNSRootB then 1 when ns.IsExtendedInheritance 5 = 0 then 0 when ns.IsExtendedInheritance = 1 and ns.UID_DPRNameSpace = rg.UID_DPRNameSpace then 1 else 0 end ) begin raiserror ('#LDS#Assignment is not permitted due to the configuration of related UNSRoots.|' 6, 18, 2) with nowait end declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('') declare @DBQueueElements_01 QBM_YDBQueueRaw 7insert into @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select uid_UNSGroupB2Parent as uid from inserted 8 union select UID_UNSGroupB2Child from inserted union select co.uid_UNSGroupB2Parent as uid from inserted i join UNSGroupB2collection co on i.UID_UNSGroupB2Child 9 = co.UID_UNSGroupB2Child union select co.uid_UNSGroupB2Parent from inserted i join UNSGroupB2collection co on i.UID_UNSGroupB2Parent = co.UID_UNSGroupB2Child 10 union select co.UID_UNSGroupB2Child from inserted i join UNSGroupB2collection co on i.UID_UNSGroupB2Child = co.UID_UNSGroupB2Parent union select 11 co.UID_UNSGroupB2Child from inserted i join UNSGroupB2collection co on i.UID_UNSGroupB2Parent = co.UID_UNSGroupB2Parent ) as x exec QBM_PDBQueueInsert_Bulk 12 'TSB-K-UNSGroupB2InUNSGroupB2', @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH 13 ende: return end 14
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.897
inserts DBQueue tasks uses session context values has TRY/CATCH error handling
Summary: calls QBM_PDBQueueInsert_Bulk, QBM_PSessionErrorAdd; writes INSERT not, INSERT into; reads/joins inserted, UNSGroupB2, UNSRootB, DPRNameSpace, UNSGroupB2collection
Declared parameters
No declared parameters in sys.parameters for this object, or metadata was not available.
DML targets
INSERT not INSERT intoCalled routines
Read/join references
SQL dependency metadata
Config/session
Config: None extracted.
Session: None extracted.
DBQueue/tasks
TSB-K-UNSGroupB2InUNSGroupB2Temp tables / referenced variables
Temp: #LDS #Assignment
Variables: @GenProcID @DBQueueElements_01
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.