dbo.QBM_ZViewBuildU
SQL_STORED_PROCEDURE
Created 2025-06-27T17:58:59.080 · modified 2026-04-14T23:20:29.903 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@SlotNumber | int | no |
@UID_DialogTable_Param | varchar | no |
@dummy | varchar | no |
@GenProcID | varchar | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| DialogTable | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_PViewBuildU_intern | OBJECT_OR_COLUMN | ||
| QBM_YCursorBuffer | TYPE | ||
| QBMModuleDef | OBJECT_OR_COLUMN | ||
| dbo | QBM_FCVGUIDToModuleOwner | 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_ZViewBuildU (@SlotNumber int , @UID_DialogTable_Param varchar(38) , @dummy varchar(38) , @GenProcID varchar(38) ) AS 2begin declare @UID_DialogTable varchar(38) declare @tableGUID QBM_YCursorBuffer declare @ElementCount int declare @ElementIndex int BEGIN TRY insert into 3 @tableGUID(UID1 ) select distinct x.UID_DialogTable from ( select t.UID_DialogTable, def.SortOrder from DialogTable t with (readpast) join QBMModuleDef 4 def with (readpast) on LEFT(t.uid_dialogtable, 3) = def.ModuleName where t.UID_DialogTable = @UID_DialogTable_Param and t.TableType = 'U' union select 5 @UID_DialogTable_Param, 1 from INFORMATION_SCHEMA.TABLES t with (readpast) where dbo.QBM_FGITableName(@UID_DialogTable_Param) = t.TABLE_NAME collate database_default 6 and t.TABLE_TYPE = 'VIEW' ) as x order by x.UID_DialogTable select @ElementCount = @@rowcount select @ElementIndex = 1 while @ElementIndex <= @ElementCount 7 begin select top 1 @uid_dialogTable = bu.UID1 from @tableGUID bu where bu.ElementIndex = @ElementIndex if dbo.QBM_FCVGUIDToModuleOwner(@uid_dialogTable 8) = 'CCC' begin exec QBM_PViewBuildU_intern @UID_DialogTable , @GenProcID , @AutoCorrectColumns = 1 end else begin exec QBM_PViewBuildU_intern @UID_DialogTable 9 , @GenProcID end select @ElementIndex += 1 end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: 10 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:29.903
has TRY/CATCH error handling
Summary: calls QBM_PViewBuildU_intern, QBM_PSessionErrorAdd; writes INSERT into; reads/joins DialogTable, QBMModuleDef, INFORMATION_SCHEMA
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@SlotNumber | int | input |
@UID_DialogTable_Param | varchar(38) | input |
@dummy | varchar(38) | input |
@GenProcID | varchar(38) | 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: @SlotNumber @UID_DialogTable_Param @dummy @GenProcID @UID_DialogTable @tableGUID @ElementCount @ElementIndex @rowcount @uid_dialogTable @AutoCorrectColumns
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.