dbo.TSB_ZUNSGroupB2InUNSGroupB2_C
SQL_STORED_PROCEDURE
Created 2025-06-27T18:01:21.870 · modified 2026-04-14T23:20:48.040 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@SlotNumberDummy | int | no |
@dummy1 | varchar | no |
@Dummy2 | varchar | no |
@GenProcIDDummy | varchar | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| UNSGroupB2Collection | OBJECT_OR_COLUMN |
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
1 create procedure TSB_ZUNSGroupB2InUNSGroupB2_C ( @SlotNumberDummy int , @dummy1 varchar(38) , @Dummy2 varchar(38) , @GenProcIDDummy 2 varchar(38) ) as begin BEGIN TRY update UNSGroupB2Collection set IsCircular = 1 from UNSGroupB2Collection co where co.UID_UNSGroupB2Child <> co.UID_UNSGroupB2Parent 3 and exists (select top 1 1 from UNSGroupB2Collection ce where co.UID_UNSGroupB2Child = ce.UID_UNSGroupB2Parent and co.UID_UNSGroupB2Parent = ce.UID_UNSGroupB2Child 4 ) and IsCircular = 0 update UNSGroupB2Collection set IsCircular = 0 from UNSGroupB2Collection co where co.UID_UNSGroupB2Child <> co.UID_UNSGroupB2Parent 5 and not exists (select top 1 1 from UNSGroupB2Collection ce where co.UID_UNSGroupB2Child = ce.UID_UNSGroupB2Parent and co.UID_UNSGroupB2Parent 6 = ce.UID_UNSGroupB2Child ) and IsCircular = 1 update UNSGroupB2Collection set IsCircular = 1 from UNSGroupB2Collection co where co.UID_UNSGroupB2Child 7 = co.UID_UNSGroupB2Parent and exists (select top 1 1 from UNSGroupB2Collection ce where co.UID_UNSGroupB2Parent = ce.UID_UNSGroupB2Parent and 8ce.UID_UNSGroupB2Child <> ce.UID_UNSGroupB2Parent and IsCircular = 1 ) and IsCircular = 0 update UNSGroupB2Collection set IsCircular = 0 from UNSGroupB2Collection 9 co where co.UID_UNSGroupB2Child = co.UID_UNSGroupB2Parent and not exists (select top 1 1 from UNSGroupB2Collection ce where co.UID_UNSGroupB2Parent 10 = ce.UID_UNSGroupB2Parent and ce.UID_UNSGroupB2Child <> ce.UID_UNSGroupB2Parent and IsCircular = 1 ) and IsCircular = 1 update UNSGroupB2Collection 11 set IsCircular = x.IsCircular from UNSGroupB2Collection co join (select y.UID_UNSGroupB2Child, y.IsCircular from UNSGroupB2Collection y where y.UID_UNSGroupB2Child 12 = y.UID_UNSGroupB2Parent ) as x on x.UID_UNSGroupB2Child = co.UID_UNSGroupB2Child where co.IsCircular <> x.IsCircular END TRY BEGIN CATCH exec 13QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH 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:20:48.040
has TRY/CATCH error handling
Summary: calls QBM_PSessionErrorAdd; writes UPDATE UNSGroupB2Collection; reads/joins UNSGroupB2Collection
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@SlotNumberDummy | int | input |
@dummy1 | varchar(38) | input |
@Dummy2 | varchar(38) | input |
@GenProcIDDummy | varchar(38) | input |
DML targets
UPDATE UNSGroupB2CollectionCalled routines
Read/join references
SQL dependency metadata
Config/session
Config: None extracted.
Session: None extracted.
DBQueue/tasks
None extracted.Temp tables / referenced variables
Temp: None extracted.
Variables: @SlotNumberDummy @dummy1 @Dummy2 @GenProcIDDummy
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.