dbo.QBM_ZViewBuildP

SQL_STORED_PROCEDURE

Created 2025-06-27T17:58:59.067 · modified 2026-04-14T23:20:29.890 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
@SlotNumberintno
@UID_DialogTable_Paramvarcharno
@dummyvarcharno
@GenProcIDvarcharno

Referenced objects

SchemaObjectColumn/minorClass
DialogTableOBJECT_OR_COLUMN
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QBM_PViewBuildP_internOBJECT_OR_COLUMN
QBM_YCursorBufferTYPE
QBMModuleDefOBJECT_OR_COLUMN
dboQBM_FCVGUIDToModuleOwnerOBJECT_OR_COLUMN
dboQBM_FGITableNameOBJECT_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_ZViewBuildP (@SlotNumber int , @UID_DialogTable_Param varchar(38) , @dummy varchar(38) , @GenProcID varchar(38) ) AS begin
2 declare @UID_DialogTable varchar(38) declare @tableGUID QBM_YCursorBuffer declare @ElementCount int declare @ElementIndex int BEGIN TRY insert into @tableGUID
3(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 = 'P' 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_PViewBuildP_intern @UID_DialogTable , @GenProcID , @AutoCorrectColumns = 1 end else begin exec QBM_PViewBuildP_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.890

has TRY/CATCH error handling

Summary: calls QBM_PViewBuildP_intern, QBM_PSessionErrorAdd; writes INSERT into; reads/joins DialogTable, QBMModuleDef, INFORMATION_SCHEMA

Declared parameters

ParameterTypeDirection
@SlotNumberintinput
@UID_DialogTable_Paramvarchar(38)input
@dummyvarchar(38)input
@GenProcIDvarchar(38)input

DML targets

INSERT into

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.