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