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.
Parameters
| Name | Type | Output |
|---|---|---|
@UID_TablePattern | varchar | no |
@dummy1 | varchar | no |
@GenProcID | varchar | no |
@AutoCorrectColumns | bit | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| dialogtable | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_PViewBuildV_intern | OBJECT_OR_COLUMN | ||
| QBM_YCursorBuffer | TYPE | ||
| QBMModuleDef | OBJECT_OR_COLUMN | ||
| dbo | QBM_FGISessionContext | OBJECT_OR_COLUMN | |
| dbo | QBM_FGISessionErrorRethrow | 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_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
| Parameter | Type | Direction |
|---|---|---|
@UID_TablePattern | varchar(38) | input |
@dummy1 | varchar(38) | input |
@GenProcID | varchar(38) | input |
@AutoCorrectColumns | bit | input |
DML targets
INSERT intoCalled routines
Read/join references
SQL dependency metadata
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 object | Relation | Evidence |
|---|---|---|
| dbo.QBM_PViewBuild | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PViewBuild | source text reference | uses session context values, has TRY/CATCH error handling |