dbo.QER_ZAllChildrenOfOrg
SQL_STORED_PROCEDURE
Created 2025-06-27T18:01:06.890 · modified 2026-04-14T23:20:39.477 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@SlotNumber | int | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| BaseTreeCollection | OBJECT_OR_COLUMN | ||
| QBM_PDBQueueInsert_Bulk | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_YCursorBuffer | TYPE | ||
| QBM_YDBQueueCurrent | TYPE | ||
| QBM_YDBQueueRaw | TYPE | ||
| QBMDBQueueCurrent | 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 QER_ZAllChildrenOfOrg (@SlotNumber int) as begin declare @taskname varchar(38) declare @ElementBuffer QBM_YCursorBuffer 2 declare @ElementCount int declare @ElementIndex int declare @DBQueueCurrent QBM_YDBQueueCurrent BEGIN TRY insert into @DBQueueCurrent(UID_DialogDBQueue 3, UID_Parameter, UID_SubParameter, GenProcID) select UID_DialogDBQueue, UID_Parameter, UID_SubParameter, GenProcID from QBMDBQueueCurrent cu with (readpast 4) where cu.SlotNumber = @SlotNumber if @@rowcount = 0 begin goto EndLabel end declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_01 5 (object, subobject, genprocid) select x.object, null, x.GenProcID from ( select distinct oc.uid_org as object , p.genprocid from @DBQueueCurrent p join 6 BaseTreeCollection oc on oc.uid_parentOrg = p.uid_parameter ) as x insert into @ElementBuffer (UID1) select distinct uid_subparameter from @DBQueueCurrent 7 p select @ElementCount = @@ROWCOUNT select @ElementIndex = 1 while @ElementIndex <= @ElementCount begin select top 1 @taskname = bu.UID1 from @ElementBuffer 8 bu where bu.ElementIndex = @ElementIndex exec QBM_PDBQueueInsert_Bulk @taskname, @DBQueueElements_01 select @ElementIndex += 1 end END TRY BEGIN CATCH 9 exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH endLabel: end 10
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:39.477
inserts DBQueue tasks has TRY/CATCH error handling
Summary: calls QBM_PDBQueueInsert_Bulk, QBM_PSessionErrorAdd; writes INSERT into; reads/joins QBMDBQueueCurrent, BaseTreeCollection
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@SlotNumber | int | input |
DML targets
INSERT intoCalled 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: @SlotNumber @taskname @ElementBuffer @ElementCount @ElementIndex @DBQueueCurrent @rowcount @DBQueueElements_01 @ROWCOUNT
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.