dbo.TSB_ZUNSGroupB1InUNSGroupB1_C
SQL_STORED_PROCEDURE
Created 2025-06-27T18:01:21.723 · modified 2026-04-14T23:20:47.780 · 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 | ||
| UNSGroupB1Collection | 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_ZUNSGroupB1InUNSGroupB1_C ( @SlotNumberDummy int , @dummy1 varchar(38) , @Dummy2 varchar(38) , @GenProcIDDummy 2 varchar(38) ) as begin BEGIN TRY update UNSGroupB1Collection set IsCircular = 1 from UNSGroupB1Collection co where co.UID_UNSGroupB1Child <> co.UID_UNSGroupB1Parent 3 and exists (select top 1 1 from UNSGroupB1Collection ce where co.UID_UNSGroupB1Child = ce.UID_UNSGroupB1Parent and co.UID_UNSGroupB1Parent = ce.UID_UNSGroupB1Child 4 ) and IsCircular = 0 update UNSGroupB1Collection set IsCircular = 0 from UNSGroupB1Collection co where co.UID_UNSGroupB1Child <> co.UID_UNSGroupB1Parent 5 and not exists (select top 1 1 from UNSGroupB1Collection ce where co.UID_UNSGroupB1Child = ce.UID_UNSGroupB1Parent and co.UID_UNSGroupB1Parent 6 = ce.UID_UNSGroupB1Child ) and IsCircular = 1 update UNSGroupB1Collection set IsCircular = 1 from UNSGroupB1Collection co where co.UID_UNSGroupB1Child 7 = co.UID_UNSGroupB1Parent and exists (select top 1 1 from UNSGroupB1Collection ce where co.UID_UNSGroupB1Parent = ce.UID_UNSGroupB1Parent and 8ce.UID_UNSGroupB1Child <> ce.UID_UNSGroupB1Parent and IsCircular = 1 ) and IsCircular = 0 update UNSGroupB1Collection set IsCircular = 0 from UNSGroupB1Collection 9 co where co.UID_UNSGroupB1Child = co.UID_UNSGroupB1Parent and not exists (select top 1 1 from UNSGroupB1Collection ce where co.UID_UNSGroupB1Parent 10 = ce.UID_UNSGroupB1Parent and ce.UID_UNSGroupB1Child <> ce.UID_UNSGroupB1Parent and IsCircular = 1 ) and IsCircular = 1 update UNSGroupB1Collection 11 set IsCircular = x.IsCircular from UNSGroupB1Collection co join (select y.UID_UNSGroupB1Child, y.IsCircular from UNSGroupB1Collection y where y.UID_UNSGroupB1Child 12 = y.UID_UNSGroupB1Parent ) as x on x.UID_UNSGroupB1Child = co.UID_UNSGroupB1Child 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:47.780
has TRY/CATCH error handling
Summary: calls QBM_PSessionErrorAdd; writes UPDATE UNSGroupB1Collection; reads/joins UNSGroupB1Collection
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@SlotNumberDummy | int | input |
@dummy1 | varchar(38) | input |
@Dummy2 | varchar(38) | input |
@GenProcIDDummy | varchar(38) | input |
DML targets
UPDATE UNSGroupB1CollectionCalled 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.