dbo.QER_RITShopHelperFill
SQL_STORED_PROCEDURE
Created 2025-06-27T18:01:06.010 · modified 2026-04-14T23:20:38.157 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@SlotNumber | int | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| Person | OBJECT_OR_COLUMN | ||
| PersonWantsOrg | OBJECT_OR_COLUMN | ||
| PWOHelperPWO | OBJECT_OR_COLUMN | ||
| QBM_PDBQCS_CurrentMoveSlot | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_PSlotResetWhileJobRun_L | OBJECT_OR_COLUMN | ||
| QBM_YDBQCSCurrentToMove | TYPE | ||
| QBM_YDBQueueCurrent | TYPE | ||
| QBM_YParameterList | TYPE | ||
| QBMDBQueueCurrent | OBJECT_OR_COLUMN |
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
1create procedure QER_RITShopHelperFill (@SlotNumber int) AS begin declare @ObjectKeysToCheck_Projection QBM_YParameterList, @ObjectKeysToCheck_Jobrunning 2 QBM_YParameterList declare @RowsToReset int declare @MyName nvarchar(64) = object_name(@@procid) declare @DBQueueCurrent QBM_YDBQueueCurrent declare 3@resetted int declare @DBQueueToMove QBM_YDBQCSCurrentToMove declare @SlotNumberSource int declare @SlotNumberTarget int declare @RowsMoved int BEGIN TRY 4 insert into @DBQueueCurrent(UID_DialogDBQueue, UID_Parameter, UID_SubParameter, GenProcID) select UID_DialogDBQueue, UID_Parameter, UID_SubParameter, 5GenProcID from QBMDBQueueCurrent cu with (readpast) where cu.SlotNumber = @SlotNumber if @@rowcount = 0 begin goto EndLabel end if exists (select top 1 6 1 from @DBQueueCurrent cu join PersonWantsOrg pwo with (readpast) on pwo.UID_PersonWantsOrg = cu.UID_Parameter where pwo.OrderState in ('Aborted', 'Assigned' 7, 'Dismissed', 'Granted', 'New', 'Unsubscribed', 'Waiting') ) begin delete @DBQueueToMove select @SlotNumberSource = @SlotNumber select @SlotnumberTarget 8 = 0 insert into @DBQueueToMove(UID_DialogDBQueue, AdditionalValue) select cul.UID_DialogDBQueue, pwo.UID_PersonWantsOrg from @DBQueueCurrent cul join 9 PersonWantsOrg pwo on pwo.UID_PersonWantsOrg = cul.UID_Parameter join PWOHelperPWO h on h.UID_PersonWantsOrg = pwo.UID_PersonWantsOrg where pwo.OrderState 10 in ('Aborted', 'Assigned', 'Dismissed', 'Granted', 'New', 'Unsubscribed', 'Waiting') if @@ROWCOUNT > 0 begin delete PWOHelperPWO from PWOHelperPWO h join 11 @DBQueueToMove mo on h.UID_PersonWantsOrg = mo.AdditionalValue exec @RowsMoved = QBM_PDBQCS_CurrentMoveSlot @DBQueueToMove, @SlotNumberSource, @SlotnumberTarget 12 delete @DBQueueCurrent from @DBQueueCurrent cu join @DBQueueToMove mo on cu.UID_DialogDBQueue = mo.UID_DialogDBQueue end end insert into @ObjectKeysToCheck_Jobrunning 13(Parameter1, Parameter2) select x.UID_PersonWantsOrg, x.XObjectKey from @DBQueueCurrent cu join PersonwantsOrg x on cu.UID_Parameter = x.UID_PersonWantsOrg 14 union all select cu.UID_parameter, p.XObjectKey from @DBQueueCurrent cu join PersonwantsOrg x on cu.UID_Parameter = x.UID_PersonWantsOrg join Person p 15 on x.UID_PersonOrdered = p.UID_Person exec @resetted = QBM_PSlotResetWhileJobRun_L @DBQueueCurrent, @@PROCID, @ObjectKeysToCheck_Jobrunning, @SlotNumber 16 = @SlotNumber END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH endLabel: end 17
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.157
has TRY/CATCH error handling
Summary: calls QBM_PDBQCS_CurrentMoveSlot, QBM_PSlotResetWhileJobRun_L, QBM_PSessionErrorAdd; writes INSERT into, DELETE PWOHelperPWO; reads/joins QBMDBQueueCurrent, PersonWantsOrg, PWOHelperPWO, PersonwantsOrg, Person
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@SlotNumber | int | input |
DML targets
INSERT into DELETE PWOHelperPWORead/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 @ObjectKeysToCheck_Projection @ObjectKeysToCheck_Jobrunning @RowsToReset @MyName @procid @DBQueueCurrent @resetted @DBQueueToMove @SlotNumberSource @SlotNumberTarget @RowsMoved @rowcount @SlotnumberTarget @ROWCOUNT @PROCID
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.