dbo.QBM_PSessionErrorSave
SQL_STORED_PROCEDURE
Created 2025-06-27T17:57:01.483 · modified 2026-04-14T23:14:10.467 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@AllSessionErrors | QBM_YSessionError | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| QBM_PSessionContextSet | OBJECT_OR_COLUMN | ||
| QBM_YSessionError | TYPE | ||
| dbo | QBM_FCVIntToString | OBJECT_OR_COLUMN | |
| dbo | QBM_FCVSessionErrorToMVP | OBJECT_OR_COLUMN | |
| dbo | QBM_FCVStringPadLeft | 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_PSessionErrorSave (@AllSessionErrors QBM_YSessionError readonly ) as begin declare @MessageKey varchar(30) declare @LastMessage 2 varchar(8000) declare @OneSessionError QBM_YSessionError Declare @ElementCount int declare @ElementIndex int declare @LastElement int SET XACT_ABORT OFF 3 set nocount on select @ElementCount = COUNT(*) from @AllSessionErrors select @ElementIndex = min(e.ElementIndex) from @AllSessionErrors e select @LastElement 4 = @ElementIndex + @ElementCount - 1 while @ElementIndex <= @LastElement begin select @MessageKey = CONCAT('ErrorMessage', dbo.QBM_FCVStringPadLeft( dbo.QBM_FCVIntToString 5(@ElementIndex), 3, '0') ) delete @OneSessionError insert into @OneSessionError(ErrorMessage, ErrorSeverity, ErrorState, ErrorNumber , ProcedureName, 6ProcedureLine, MessageDate , GenProcID, RepeatCounter, IsReThrow, SourceCode) select ErrorMessage, ErrorSeverity, ErrorState, ErrorNumber , ProcedureName 7, ProcedureLine, MessageDate , GenProcID, RepeatCounter, IsReThrow, SourceCode from @AllSessionErrors e where e.ElementIndex = @ElementIndex select @LastMessage 8 = dbo.QBM_FCVSessionErrorToMVP(@OneSessionError) exec QBM_PSessionContextSet @MessageKey, @LastMessage select @ElementIndex += 1 end select @MessageKey 9 = CONCAT('ErrorMessage', dbo.QBM_FCVStringPadLeft( dbo.QBM_FCVIntToString(@ElementIndex), 3, '0') ) exec QBM_PSessionContextSet @MessageKey, '' end 10
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:14:10.467
uses session context values
Summary: calls QBM_PSessionContextSet; writes INSERT into
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@AllSessionErrors | qbm_ysessionerror | input |
DML targets
INSERT intoCalled routines
Read/join references
None extracted.
SQL dependency metadata
Config/session
Config: None extracted.
Session: None extracted.
DBQueue/tasks
None extracted.Temp tables / referenced variables
Temp: None extracted.
Variables: @AllSessionErrors @MessageKey @LastMessage @OneSessionError @ElementCount @ElementIndex @LastElement
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.QBM_PSessionErrorAdd | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PSessionErrorAdd | source text reference | SQL_STORED_PROCEDURE |