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