dbo.QER_PQERRiskIndexDefine

SQL_STORED_PROCEDURE

Created 2025-06-27T18:01:06.833 · modified 2026-04-14T23:20:39.397 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
@TableNamevarcharno
@ColumnNamevarcharno
@TypeOfCalculationvarcharno
@Weightfloatno
@QueryStringnvarcharno
@DisplayValuenvarcharno
@Descriptionnvarcharno
@IsInActivebitno
@UID_QERRiskIndexvarcharno

Referenced objects

SchemaObjectColumn/minorClass
DialogColumnOBJECT_OR_COLUMN
DialogTableOBJECT_OR_COLUMN
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QERRiskIndexOBJECT_OR_COLUMN
dboQBM_FCVElementToObjectKey1OBJECT_OR_COLUMN
dboQBM_FCVGuidToTransferOBJECT_OR_COLUMN
dboQBM_FGIDBOwnerOBJECT_OR_COLUMN
dboQBM_FGISessionErrorRethrowOBJECT_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 QER_PQERRiskIndexDefine( @TableName varchar(30) , @ColumnName varchar(30) , @TypeOfCalculation varchar(3) , @Weight float ,
2 @QueryString nvarchar(max) , @DisplayValue nvarchar(64) , @Description nvarchar(max) , @IsInActive bit = 0 , @UID_QERRiskIndex varchar(38) = null ) as
3 begin declare @UID_DialogColumn varchar(38) declare @IsInsert bit = 0 declare @Xdate datetime = getutcdate() declare @XUser nvarchar(64) = object_name
4(@@procid) declare @Msg nvarchar(1000) SET XACT_ABORT OFF BEGIN TRY select top 1 @UID_DialogColumn = c.UID_DialogColumn from DialogTable t with (readpast
5) join DialogColumn c with (readpast) on t.UID_DialogTable = c.UID_DialogTable where c.ColumnName = @ColumnName and t.TableName = @TableName if @UID_DialogColumn
6 is null begin select @Msg = '#LDS#Column {0} not found in table {1}.|' + @ColumnName + '|' + @TableName + '|' raiserror(@msg, 18, 1 ) with nowait end 
7if @UID_QERRiskIndex is null begin select top 1 @UID_QERRiskIndex from QERRiskIndex r where r.UID_DialogColumn = @UID_DialogColumn and r.DisplayValue =
8 @DisplayValue and r.TypeOfCalculation = @TypeOfCalculation end if @UID_QERRiskIndex is null begin select @UID_QERRiskIndex = dbo.QBM_FCVGuidToTransfer
9(newid(), dbo.QBM_FGIDBOwner() ) end if not exists (select top 1 1 from QERRiskIndex r where r.UID_QERRiskIndex = @UID_QERRiskIndex ) begin select @IsInsert
10 = 1 end if @IsInsert = 1 begin insert into QERRiskIndex(Description, DisplayValue, IsInActive, QueryString , TypeOfCalculation, UID_DialogColumn, UID_QERRiskIndex
11, Weight , XDateInserted, XDateUpdated, XUserInserted, XUserUpdated , XObjectKey ) select @Description, @DisplayValue, @IsInActive, @QueryString , @TypeOfCalculation
12, @UID_DialogColumn, @UID_QERRiskIndex, @Weight , @XDate, @Xdate, @XUser, @XUser , dbo.QBM_FCVElementToObjectKey1('QERRiskIndex', 'UID_QERRiskIndex', @UID_QERRiskIndex
13) end else begin update QERRiskIndex set Description = @Description  , IsInActive = @IsInActive , QueryString = @QueryString  , Weight = @Weight , XDateUpdated
14 = @Xdate , XUserUpdated = @XUser where UID_QERRiskIndex = @UID_QERRiskIndex end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default declare @Rethrow
15 varchar(1000) = dbo.QBM_FGISessionErrorRethrow() RAISERROR (@Rethrow, 18, 1) WITH NOWAIT END CATCH ende: 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:39.397

has TRY/CATCH error handling

Summary: calls QBM_PSessionErrorAdd; writes INSERT QERRiskIndex, UPDATE QERRiskIndex; reads/joins DialogTable, DialogColumn, QERRiskIndex

Declared parameters

ParameterTypeDirection
@TableNamevarchar(30)input
@ColumnNamevarchar(30)input
@TypeOfCalculationvarchar(3)input
@Weightfloatinput
@QueryStringnvarcharinput
@DisplayValuenvarchar(64)input
@Descriptionnvarcharinput
@IsInActivebitinput
@UID_QERRiskIndexvarchar(38)input

DML targets

INSERT QERRiskIndex UPDATE QERRiskIndex

Called routines

Config/session

Config: None extracted.

Session: None extracted.

DBQueue/tasks

None extracted.

Temp tables / referenced variables

Temp: #LDS #Column

Variables: @TableName @ColumnName @TypeOfCalculation @Weight @QueryString @DisplayValue @Description @IsInActive @UID_QERRiskIndex @UID_DialogColumn @IsInsert @Xdate @XUser @procid @Msg @msg @XDate @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.