dbo.QBM_PViewBuildR_intern
SQL_STORED_PROCEDURE
Created 2025-06-27T17:57:29.937 · modified 2026-04-14T23:20:27.160 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@UID_DialogTableR | varchar | no |
@GenProcID | varchar | no |
@ModuleName | varchar | no |
@AutoCorrectColumns | bit | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| dialogtable | OBJECT_OR_COLUMN | ||
| QBM_PDialogColumnDelete | OBJECT_OR_COLUMN | ||
| QBM_PDialogColumnInsert | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_PViewBuild_FromAddOn | OBJECT_OR_COLUMN | ||
| QBM_PViewDrop | OBJECT_OR_COLUMN | ||
| QBMViewAddOn | OBJECT_OR_COLUMN | ||
| dbo | QBM_FGISessionErrorRethrow | OBJECT_OR_COLUMN | |
| dbo | QBM_FGITableName | 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_PViewBuildR_intern ( @UID_DialogTableR varchar(38), @GenProcID varchar(38) , @ModuleName varchar(3) = '' , @AutoCorrectColumns 2 bit = 0 ) as begin declare @SQLcmd nvarchar(max) declare @TableNameR varchar(38) declare @DebugSwitch int = 0 declare @DebugLevel varchar(1) = 'W' SET 3 XACT_ABORT OFF BEGIN TRY select @TableNameR = dbo.QBM_FGITableName(@UID_DialogTableR) if exists (select top 1 1 from information_schema.tables where table_name 4 = @TableNameR and table_type = 'VIEW' ) and not exists (select top 1 1 from dialogtable t where t.TableName = @TableNameR ) begin exec QBM_PViewDrop @TableNameR 5 end if not exists (select top 1 1 from DialogTable t where t.TableName = @TableNameR and t.TableType = 'R' ) begin goto endLabel end if not exists (select 6 top 1 1 from DialogTable t where t.UID_DialogTable = @UID_DialogTableR ) begin goto endLabel end if @DebugSwitch > 0 begin select * from QBMViewAddOn 7where UID_DialogTable = @UID_DialogTableR end exec QBM_PViewBuild_FromAddOn @UID_DialogTableR if @AutoCorrectColumns = 1 begin exec QBM_PDialogColumnDelete 8 @TableNameR , @GenProcID exec QBM_PDialogColumnInsert @TableNameR , @GenProcID, @ModuleName end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default 9declare @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow() RAISERROR (@Rethrow, 18, 1) WITH NOWAIT END CATCH endLabel: return 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:20:27.160
has TRY/CATCH error handling
Summary: calls QBM_PViewDrop, QBM_PViewBuild_FromAddOn, QBM_PDialogColumnDelete, QBM_PDialogColumnInsert, QBM_PSessionErrorAdd; reads/joins information_schema, dialogtable, DialogTable, QBMViewAddOn
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@UID_DialogTableR | varchar(38) | input |
@GenProcID | varchar(38) | input |
@ModuleName | varchar(3) | input |
@AutoCorrectColumns | bit | input |
DML targets
None extracted.Called 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_DialogTableR @GenProcID @ModuleName @AutoCorrectColumns @SQLcmd @TableNameR @DebugSwitch @DebugLevel @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_PViewBuildR | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_ZViewBuildR | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PViewBuildR | source text reference | uses session context values, has TRY/CATCH error handling |
| dbo.QBM_ZViewBuildR | source text reference | has TRY/CATCH error handling |