dbo.QBM_PViewBuildV

SQL_STORED_PROCEDURE

Created 2025-06-27T17:57:29.883 · modified 2026-04-14T23:20:27.090 · 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_PViewBuildV_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_PViewBuildV ( @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 @ElementBuffer QBM_YCursorBuffer
3 declare @ElementCount int declare @ElementIndex int SET XACT_ABORT OFF BEGIN TRY if isnull(@GenProcID, '') = '' begin select @GenProcID = @GenProcID_R
4 end insert into @ElementBuffer (UID1) select x.UID_DialogTable from ( select t.UID_DialogTable as UID_DialogTable, def.SortOrder from dialogtable t join
5 dialogtable b on t.UID_DialogTableBase = b.UID_DialogTable join QBMModuleDef def on LEFT(t.uid_dialogtable, 3) = def.ModuleName where t.tabletype = 'V'
6 and b.tabletype in ('B') and ( t.UID_DialogTable like @UID_TablePattern ) union  select @UID_TablePattern, 0 where charindex('%', @UID_TablePattern ) 
7= 0 and @UID_TablePattern > ' ' ) as x order by x.SortOrder, x.UID_DialogTable select @ElementCount = @@ROWCOUNT select @ElementIndex = 1 while @ElementIndex
8 <= @ElementCount begin select top 1 @UID_DialogTable = bu.UID1 from @ElementBuffer bu where bu.ElementIndex = @ElementIndex exec QBM_PViewBuildV_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.090

uses session context values has TRY/CATCH error handling

Summary: calls QBM_PViewBuildV_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 @ElementBuffer @ElementCount @ElementIndex @ROWCOUNT @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