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.

Open formatted source/search result

Parameters

NameTypeOutput
@AllSessionErrorsQBM_YSessionErrorno

Referenced objects

SchemaObjectColumn/minorClass
QBM_PSessionContextSetOBJECT_OR_COLUMN
QBM_YSessionErrorTYPE
dboQBM_FCVIntToStringOBJECT_OR_COLUMN
dboQBM_FCVSessionErrorToMVPOBJECT_OR_COLUMN
dboQBM_FCVStringPadLeftOBJECT_OR_COLUMN

Source excerpt

First extracted SQL definition lines from the exported source. Use the full source page for complete context.

Open full formatted source

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

ParameterTypeDirection
@AllSessionErrorsqbm_ysessionerrorinput

DML targets

INSERT into

Called routines

Read/join references

None extracted.

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 objectRelationEvidence
dbo.QBM_PSessionErrorAddSQL expression dependencyOBJECT_OR_COLUMN
dbo.QBM_PSessionErrorAddsource text referenceSQL_STORED_PROCEDURE