dbo.QER_ZRiskIndexCalculate
SQL_STORED_PROCEDURE
Created 2025-06-27T18:01:07.513 · modified 2026-04-14T23:20:40.310 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@SlotNumber | int | no |
@UID_DialogColumn | varchar | no |
@SubObject | varchar | no |
@GenProcID | varchar | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| DialogDBQueue | OBJECT_OR_COLUMN | ||
| QBM_PDBQueueCurrentResetNGen | OBJECT_OR_COLUMN | ||
| QBM_PJournal | OBJECT_OR_COLUMN | ||
| QBM_PSessionContextSet | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBMDBQueueCurrent | OBJECT_OR_COLUMN | ||
| QERRiskIndexColumnDepend | OBJECT_OR_COLUMN | ||
| dbo | QBM_FGIDBQueueSlotResetType | OBJECT_OR_COLUMN | |
| dbo | QBM_FGISessionContext | OBJECT_OR_COLUMN | |
| dbo | QER_FGIRiskIndexProcname | 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_ZRiskIndexCalculate (@SlotNumber int , @UID_DialogColumn varchar(38) , @SubObject varchar(38) , @GenProcID varchar(38 2) ) as begin declare @procname nvarchar(64) declare @Erg int declare @DebugSwitch int = 0 declare @Debuglevel varchar(1) = 'W' declare @Debugmessage nvarchar 3(1000) declare @SlotResetType int = dbo.QBM_FGIDBQueueSlotResetType('Waiting') declare @GenProcID_R varchar(38) = dbo.QBM_FGISessionContext('') declare 4 @UID_MeineTask varchar(38) = 'QER-K-QERRiskIndexCalculate' BEGIN TRY if exists (select top 1 1 from QERRiskIndexColumnDepend dep join ( select q.Object 5 as UID_DialogColumnPred from DialogDBQueue q with (readpast) where q.UID_Task = @UID_MeineTask and q.Generation >= 0 union select cu.UID_Parameter from 6 QBMDBQueueCurrent cu with (readpast) where cu.SlotNumber <> 0 and cu.UID_Task = @UID_MeineTask ) as act on act.UID_DialogColumnPred = dep.UID_DialogColumnSource 7 where dep.UID_DialogColumnTarget = @UID_DialogColumn ) begin if @DebugSwitch > 0 begin select @Debugmessage = concat( @UID_DialogColumn, ' mich selber wieder einstellen für den nächsten Versuch' 8 ) exec QBM_PJournal @Debugmessage, @@procid, 'D', @Debuglevel end if not exists (select top 1 1 from QBMDBQueueCurrent cu with (readpast) where 9 cu.UID_Task = @UID_MeineTask and cu.UID_Parameter = @UID_DialogColumn and cu.SlotNumber < 0 ) begin exec QBM_PDBQueueCurrentResetNGen @SlotNumber, 'waiting for predecessors' 10, 0 if @DebugSwitch > 0 begin select @Debugmessage = concat( @UID_DialogColumn, ' wirklich wieder eingestellt' ) exec QBM_PJournal @Debugmessage, @@procid 11, 'D', @Debuglevel end end goto endLabel end select @erg = 0 select @procname = dbo.QER_FGIRiskIndexProcname(@UID_DialogColumn) if not exists (select 12 top 1 1 from sys.procedures where name = @procname and type = 'P' ) begin if @DebugSwitch > 0 begin print 'prozedur ' + @procname + 'existiert nicht' 13end goto endLabel end exec QBM_PSessionContextSet 'GenProcID', @GenProcID exec @erg = @procname if @DebugSwitch > 0 begin print 'geändert ' + str(@erg 14) end if @Erg = 0 begin goto endlabel end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH endLabel: 15exec QBM_PSessionContextSet 'GenProcID', @GenProcID_R return end 16
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:40.310
uses session context values has TRY/CATCH error handling
Summary: calls QBM_PJournal, QBM_PDBQueueCurrentResetNGen, QBM_PSessionContextSet, QBM_PSessionErrorAdd; reads/joins QERRiskIndexColumnDepend, DialogDBQueue, QBMDBQueueCurrent, sys; uses session context GenProcID
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@SlotNumber | int | input |
@UID_DialogColumn | varchar(38) | input |
@SubObject | varchar(38) | input |
@GenProcID | varchar(38) | input |
DML targets
None extracted.Read/join references
SQL dependency metadata
Config/session
Config: None extracted.
Session: GenProcID
DBQueue/tasks
QER-K-QERRiskIndexCalculateTemp tables / referenced variables
Temp: None extracted.
Variables: @SlotNumber @UID_DialogColumn @SubObject @GenProcID @procname @Erg @DebugSwitch @Debuglevel @Debugmessage @SlotResetType @GenProcID_R @UID_MeineTask @procid @erg
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.