dbo.QER_ZITShopCheckStructure

SQL_STORED_PROCEDURE

Created 2025-06-27T18:01:05.950 · modified 2026-04-14T23:20:38.060 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
@SlotNumberintno

Referenced objects

SchemaObjectColumn/minorClass
BaseTreeOBJECT_OR_COLUMN
QBM_PDBQueueInsert_BulkOBJECT_OR_COLUMN
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QBM_YDBQueueCurrentTYPE
QBM_YDBQueueRawTYPE
QBMDBQueueCurrentOBJECT_OR_COLUMN

Source excerpt

First extracted SQL definition lines from the exported source. Use the full source page for complete context.

Open full formatted source

1    create   procedure QER_ZITShopCheckStructure (@SlotNumber int) as begin  declare @DBQueueCurrent QBM_YDBQueueCurrent BEGIN TRY insert into @DBQueueCurrent
2(UID_DialogDBQueue, UID_Parameter, UID_SubParameter, GenProcID) select UID_DialogDBQueue, UID_Parameter, UID_SubParameter, GenProcID from QBMDBQueueCurrent
3 cu with (readpast) where cu.SlotNumber = @SlotNumber if @@rowcount = 0 begin goto EndLabel end declare @DBQueueElements_01 QBM_YDBQueueRaw insert into
4 @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, x.GenProcID from ( select o.uid_org as uid , x.GenProcID from @DBQueueCurrent x
5 join BaseTree o on x.uid_parameter = o.uid_org and o.ITShopInfo = 'BO' union  select x.uid_parameter , x.GenProcID from @DBQueueCurrent x where not exists
6 (select top 1 1 from BaseTree where uid_org = x.uid_parameter ) union  select b.uid_org, x.GenProcID from @DBQueueCurrent x join BaseTree o on x.uid_parameter
7 = o.uid_org and o.ITShopInfo = 'SH' join BaseTree b on b.uid_parentorg = o.uid_org and b.ITShopInfo = 'BO' union  select b.uid_org, x.GenProcID from @DBQueueCurrent
8 x join BaseTree o on x.uid_parameter = o.uid_org and o.ITShopInfo = 'SC' join BaseTree s on s.uid_parentorg = o.uid_org and s.ITShopInfo = 'SH' join BaseTree
9 b on b.uid_parentorg = s.uid_org and b.ITShopInfo = 'BO' ) as x exec QBM_PDBQueueInsert_Bulk 'QER-K-ShoppingRackMethod', @DBQueueElements_01 declare @DBQueueElements_02
10 QBM_YDBQueueRaw insert into @DBQueueElements_02 (object, subobject, genprocid) select x.uid, null, x.GenProcID from (  select p.uid_org as uid , x.GenProcID
11 from @DBQueueCurrent x join BaseTree p on x.uid_parameter = p.uid_org and p.ITShopInfo = 'PR' union  select p.uid_org as uid , x.GenProcID from @DBQueueCurrent
12 x join BaseTree o on x.uid_parameter = o.uid_org and o.ITShopInfo = 'BO' join BaseTree p on p.uid_parentorg = o.uid_org and p.ITShopInfo = 'PR' union 
13 select p.uid_org, x.GenProcID from @DBQueueCurrent x join BaseTree o on x.uid_parameter = o.uid_org and o.ITShopInfo = 'SH' join BaseTree b on b.uid_parentorg
14 = o.uid_org and b.ITShopInfo = 'BO' join BaseTree p on p.uid_parentorg = b.uid_org and p.ITShopInfo = 'PR' union  select p.uid_org, x.GenProcID from @DBQueueCurrent
15 x join BaseTree o on x.uid_parameter = o.uid_org and o.ITShopInfo = 'SC' join BaseTree s on s.uid_parentorg = o.uid_org and s.ITShopInfo = 'SH' join BaseTree
16 b on b.uid_parentorg = s.uid_org and b.ITShopInfo = 'BO' join BaseTree p on p.uid_parentorg = b.uid_org and p.ITShopInfo = 'PR' ) as x exec QBM_PDBQueueInsert_Bulk
17 'QER-K-ShoppingRackProductNode', @DBQueueElements_02 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH
18 endLabel: end 
19

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:38.060

inserts DBQueue tasks has TRY/CATCH error handling

Summary: calls QBM_PDBQueueInsert_Bulk, QBM_PSessionErrorAdd; writes INSERT into; reads/joins QBMDBQueueCurrent, BaseTree

Declared parameters

ParameterTypeDirection
@SlotNumberintinput

DML targets

INSERT into

Read/join references

Config/session

Config: None extracted.

Session: None extracted.

DBQueue/tasks

QER-K-ShoppingRackMethod QER-K-ShoppingRackProductNode

Temp tables / referenced variables

Temp: None extracted.

Variables: @SlotNumber @DBQueueCurrent @rowcount @DBQueueElements_01 @DBQueueElements_02

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.