dbo.QBM_PDBQueueCurrentResetNGen
SQL_STORED_PROCEDURE
Created 2025-06-27T17:57:37.400 · modified 2026-04-14T23:16:09.090 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@SlotNumber | int | no |
@ErrorMessage | nvarchar | no |
@ProcIDCaller | int | no |
@maxGeneration | int | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| DialogDatabase | OBJECT_OR_COLUMN | ||
| QBM_PDBQCS_CurrentMoveSlot | OBJECT_OR_COLUMN | ||
| QBM_PJournal | OBJECT_OR_COLUMN | ||
| QBM_YDBQCSCurrentToMove | TYPE | ||
| QBMDBQueueCurrent | OBJECT_OR_COLUMN | ||
| dbo | QBM_FGIDBQueueSlotResetType | 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 QBM_PDBQueueCurrentResetNGen(@SlotNumber int , @ErrorMessage nvarchar(max) , @ProcIDCaller int , @maxGeneration 2int = 10 ) as begin declare @Generation int declare @JournalMessage nvarchar(max) declare @SQLCmd nvarchar(max) declare @DebugLevel char(1) = 'W' declare 3 @UID_Task varchar(38) declare @SlotNumberSource int declare @SlotNumberTarget int declare @DBQueueToMove QBM_YDBQCSCurrentToMove declare @RowsMoved int 4 select top 1 @Generation = cu.Generation , @UID_Task = cu.UID_Task from QBMDBQueueCurrent cu with (readpast) where cu.SlotNumber = @SlotNumber select 5 @JournalMessage = concat('#LDS#Temporary lock for task {0}, {1} retries left.|' , @UID_Task, '|' , str(@maxGeneration - @Generation) , '|' ) if @Generation 6 < @maxGeneration begin select @SlotNumberSource = @SlotNumber select @SlotnumberTarget = dbo.QBM_FGIDBQueueSlotResetType('Error06') delete @DBQueueToMove 7 insert into @DBQueueToMove(UID_DialogDBQueue) select cul.UID_DialogDBQueue from QBMDBQueueCurrent cul with (readpast) where cul.SlotNumber = @SlotNumber 8 exec @RowsMoved = QBM_PDBQCS_CurrentMoveSlot @DBQueueToMove, @SlotNumberSource, @SlotnumberTarget if not exists (select top 1 1 from DialogDatabase 9 where IsMainDatabase = 1 and UpdatePhase <> 0) and not exists (select top 1 1 from sys.tables t with (readpast) join sys.columns c with (readpast) on 10t.object_id = c.object_id where t.name = 'DialogDatabase' and c.name = 'InitialMigrationRunning' ) and @ProcIDCaller > 0 begin exec QBM_PJournal @JournalMessage 11, @ProcIDCaller, 'W', @DebugLevel end else begin exec QBM_PJournal @JournalMessage, @@procid, 'I', 'I' end end else begin raiserror(@ErrorMessage, 18 12, 1) with nowait end end 13
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:16:09.090
None extracted.
Summary: calls QBM_PDBQCS_CurrentMoveSlot, QBM_PJournal; writes INSERT into; reads/joins QBMDBQueueCurrent, DialogDatabase, sys
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@SlotNumber | int | input |
@ErrorMessage | nvarchar | input |
@ProcIDCaller | int | input |
@maxGeneration | 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: #LDS #Temporary
Variables: @SlotNumber @ErrorMessage @ProcIDCaller @maxGeneration @Generation @JournalMessage @SQLCmd @DebugLevel @UID_Task @SlotNumberSource @SlotNumberTarget @DBQueueToMove @RowsMoved @SlotnumberTarget @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.
| Referencing object | Relation | Evidence |
|---|---|---|
| dbo.DPR_ZTriggerCreateMembership | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_ZConstraintDisable | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_ZDashBoardDefine | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_ZIndexCreateGenerated | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_ZMakeConstraint | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_ZRITriggerCreateD | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_ZRITriggerCreateI | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_ZRITriggerCreateU | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_ZSetRowLockOnly | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_ZTableReload | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_ZTriggerWatchCreate | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_ZTriggerWatchCreate_S | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_ZEntitlementSourceMakeProc | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_ZPersonFindGenerateFunct | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_ZPWODecisionRuleMakeProc | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_ZPWOHelperFillMakeProc | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_ZRiskIndexCalculate | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_ZRiskIndexMakeProc | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.DPR_ZTriggerCreateMembership | source text reference | has TRY/CATCH error handling |
| dbo.QBM_ZConstraintDisable | source text reference | has TRY/CATCH error handling |
| dbo.QBM_ZDashBoardDefine | source text reference | has TRY/CATCH error handling |
| dbo.QBM_ZIndexCreateGenerated | source text reference | has TRY/CATCH error handling |
| dbo.QBM_ZMakeConstraint | source text reference | has TRY/CATCH error handling |
| dbo.QBM_ZRITriggerCreateD | source text reference | has TRY/CATCH error handling |
| dbo.QBM_ZRITriggerCreateI | source text reference | has TRY/CATCH error handling |
| dbo.QBM_ZRITriggerCreateU | source text reference | has TRY/CATCH error handling |
| dbo.QBM_ZSetRowLockOnly | source text reference | has TRY/CATCH error handling |
| dbo.QBM_ZTableReload | source text reference | has TRY/CATCH error handling |
| dbo.QBM_ZTriggerWatchCreate | source text reference | inserts DBQueue tasks, has TRY/CATCH error handling |
| dbo.QBM_ZTriggerWatchCreate_S | source text reference | has TRY/CATCH error handling |
| dbo.QER_ZEntitlementSourceMakeProc | source text reference | has TRY/CATCH error handling |
| dbo.QER_ZPersonFindGenerateFunct | source text reference | has TRY/CATCH error handling |
| dbo.QER_ZPWODecisionRuleMakeProc | source text reference | has TRY/CATCH error handling |
| dbo.QER_ZPWOHelperFillMakeProc | source text reference | has TRY/CATCH error handling |
| dbo.QER_ZRiskIndexCalculate | source text reference | uses session context values, has TRY/CATCH error handling |
| dbo.QER_ZRiskIndexMakeProc | source text reference | has TRY/CATCH error handling |