dbo.QBM_PViewBuildR

SQL_STORED_PROCEDURE

Created 2025-06-27T17:57:29.950 · modified 2026-04-14T23:20:27.183 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
@UID_TablePatternvarcharno
@dummy1varcharno
@GenProcIDvarcharno
@AutoCorrectColumnsbitno

Referenced objects

SchemaObjectColumn/minorClass
dialogtableOBJECT_OR_COLUMN
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QBM_PViewBuildR_internOBJECT_OR_COLUMN
QBM_YCursorBufferTYPE
QBMModuleDefOBJECT_OR_COLUMN
dboQBM_FGISessionContextOBJECT_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 QBM_PViewBuildR ( @UID_TablePattern varchar(38) = '%' , @dummy1 varchar(38) = '' , @GenProcID varchar(38) = '' , @AutoCorrectColumns
2 bit = 0 ) as begin  declare @UID_DialogTable varchar(38)  declare @GenProcID_R varchar(38) = dbo.QBM_FGISessionContext('') declare @DebugSwitch int = 
30 declare @ElementBuffer QBM_YCursorBuffer declare @ElementCount int declare @ElementIndex int SET XACT_ABORT OFF BEGIN TRY if isnull(@GenProcID, '') =
4 '' begin select @GenProcID = @GenProcID_R end insert into @ElementBuffer (UID1) select x.UID_DialogTable from ( select UID_DialogTable as UID_DialogTable
5, def.SortOrder from dialogtable t join QBMModuleDef def on LEFT(t.uid_dialogtable, 3) = def.ModuleName where t.tabletype = 'R' and ( t.UID_DialogTable
6 like @UID_TablePattern ) union  select @UID_TablePattern, 0 where charindex('%', @UID_TablePattern ) = 0 and @UID_TablePattern > ' ' ) as x order by x.SortOrder
7, x.UID_DialogTable select @ElementCount = @@ROWCOUNT select @ElementIndex = 1 while @ElementIndex <= @ElementCount begin select top 1 @UID_DialogTable
8 = bu.UID1 from @ElementBuffer bu where bu.ElementIndex = @ElementIndex if @Debugswitch > 0 begin print @UID_DialogTable end exec QBM_PViewBuildR_intern
9 @UID_DialogTable , @GenProcID, @AutoCorrectColumns = @AutoCorrectColumns select @ElementIndex += 1 end  END TRY BEGIN CATCH exec QBM_PSessionErrorAdd 
10default declare @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow() RAISERROR (@Rethrow, 18, 1) WITH NOWAIT END CATCH ende: return 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:20:27.183

uses session context values has TRY/CATCH error handling

Summary: calls QBM_PViewBuildR_intern, QBM_PSessionErrorAdd; writes INSERT into; reads/joins dialogtable, QBMModuleDef

Declared parameters

ParameterTypeDirection
@UID_TablePatternvarchar(38)input
@dummy1varchar(38)input
@GenProcIDvarchar(38)input
@AutoCorrectColumnsbitinput

DML targets

INSERT into

Read/join references

Config/session

Config: None extracted.

Session: None extracted.

DBQueue/tasks

None extracted.

Temp tables / referenced variables

Temp: None extracted.

Variables: @UID_TablePattern @dummy1 @GenProcID @AutoCorrectColumns @UID_DialogTable @GenProcID_R @DebugSwitch @ElementBuffer @ElementCount @ElementIndex @ROWCOUNT @Debugswitch @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.

Referencing objectRelationEvidence
dbo.QBM_PViewBuildSQL expression dependencyOBJECT_OR_COLUMN
dbo.QBM_PViewBuildsource text referenceuses session context values, has TRY/CATCH error handling