dbo.QBM_PMigrationNotReadyForComp
SQL_STORED_PROCEDURE
Created 2025-06-27T17:57:37.573 · modified 2026-04-14T23:16:09.210 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@UID_Task | varchar | no |
@WithTaskInsert | bit | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| DialogDatabase | OBJECT_OR_COLUMN | ||
| QBM_PDBQueueInsert_Single | OBJECT_OR_COLUMN | ||
| QBM_PSessionContextSet | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_PWaitForSeconds | OBJECT_OR_COLUMN | ||
| dbo | QBM_FGICutOffTaskExists | OBJECT_OR_COLUMN | |
| dbo | QBM_FGISessionContext | OBJECT_OR_COLUMN | |
| dbo | QBM_FGISessionErrorRethrow | 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_PMigrationNotReadyForComp ( @UID_Task varchar(38) = 'QBM-K-CommonWaitForCompiler' , @WithTaskInsert bit = 1 ) as 2 begin declare @notReady int = 1 declare @exists int declare @CutOffTaskLevel int declare @GenProcID varchar(38) = newid() declare @DebugSwitch int = 3 0 declare @GenProcID_R varchar(38) = dbo.QBM_FGISessionContext('') declare @XUser_R nvarchar(64) = dbo.QBM_FGISessionContext('XUser') SET XACT_ABORT OFF 4 BEGIN TRY if isnull(@UID_Task, '###') not in ('QBM-K-CommonWaitForCompiler', 'QBM-K-BaseMigrationReady') begin raiserror ('#LDS#Invalid @UID_Task used.|' 5, 18, 1) with nowait end select @exists = dbo.QBM_FGICutOffTaskExists(@UID_Task) if @exists = 1 begin exec QBM_PWaitForSeconds 0.75 select @exists = dbo.QBM_FGICutOffTaskExists 6(@UID_Task) if @exists = 1 begin exec QBM_PWaitForSeconds 0.75 select @exists = dbo.QBM_FGICutOffTaskExists(@UID_Task) end end if @exists = 0 and @WithTaskInsert 7 = 1 begin if exists (select top 1 1 from DialogDatabase d with (readpast) where d.UID_CutOffTask is null and d.IsMainDatabase = 1 ) begin exec QBM_PDBQueueInsert_Single 8 @uid_task, '', '', @GenProcID goto endLabel end end select @notReady = case @exists when 0 then 1 when -1 then 1 else 0 end END TRY BEGIN CATCH exec 9 QBM_PSessionErrorAdd default declare @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow() RAISERROR (@Rethrow, 18, 1) WITH NOWAIT END CATCH endLabel: 10 exec QBM_PSessionContextSet 'GenProcID', @GenProcID_R exec QBM_PSessionContextSet 'XUser', @XUser_R return (@notReady) end 11
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.210
inserts DBQueue tasks uses session context values has TRY/CATCH error handling
Summary: calls QBM_PWaitForSeconds, QBM_PDBQueueInsert_Single, QBM_PSessionErrorAdd, QBM_PSessionContextSet; reads/joins DialogDatabase; uses session context XUser, GenProcID
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@UID_Task | varchar(38) | input |
@WithTaskInsert | bit | input |
DML targets
None extracted.Called routines
Read/join references
SQL dependency metadata
Config/session
Config: None extracted.
Session: XUser GenProcID
DBQueue/tasks
QBM-K-CommonWaitForCompiler QBM-K-BaseMigrationReadyTemp tables / referenced variables
Temp: #LDS #Invalid
Variables: @UID_Task @WithTaskInsert @notReady @exists @CutOffTaskLevel @GenProcID @DebugSwitch @GenProcID_R @XUser_R @uid_task @Rethrow
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.