dbo.QBM_ZViewBuildAll

SQL_STORED_PROCEDURE

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

Open formatted source/search result

Parameters

NameTypeOutput
@SlotNumberintno

Referenced objects

SchemaObjectColumn/minorClass
DialogTableOBJECT_OR_COLUMN
QBM_PDBQueueInsert_BulkOBJECT_OR_COLUMN
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QBM_YDBQueueCurrentTYPE
QBM_YDBQueueRawTYPE
QBMDBQueueCurrentOBJECT_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_ZViewBuildAll (@SlotNumber int) AS begin declare @DBQueueCurrent QBM_YDBQueueCurrent BEGIN TRY insert into @DBQueueCurrent
2(UID_DialogDBQueue, UID_Parameter, UID_SubParameter, GenProcID) select UID_DialogDBQueue, UID_Parameter, UID_SubParameter, GenProcID from QBMDBQueueCurrent
3 cu with (readpast) where cu.SlotNumber = @SlotNumber if @@rowcount = 0 begin goto EndLabel end declare @DBQueueElements_01 QBM_YDBQueueRaw insert into
4 @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, x.GenProcID from ( select p.uid_parameter as uid, p.GenprocID from @DBQueueCurrent
5 p join DialogTable t with (readpast) on p.UID_Parameter = t.UID_DialogTable where t.TableType = 'V' ) as x exec QBM_PDBQueueInsert_Bulk 'QBM-K-CommonRebuildViewV'
6, @DBQueueElements_01 declare @DBQueueElements_02 QBM_YDBQueueRaw insert into @DBQueueElements_02 (object, subobject, genprocid) select x.uid, null, x.GenProcID
7 from ( select p.uid_parameter as uid, p.GenprocID from @DBQueueCurrent p join DialogTable t with (readpast) on p.UID_Parameter = t.UID_DialogTable where
8 t.TableType = 'P' ) as x exec QBM_PDBQueueInsert_Bulk 'QBM-K-CommonRebuildViewP', @DBQueueElements_02 declare @DBQueueElements_03 QBM_YDBQueueRaw insert
9 into @DBQueueElements_03 (object, subobject, genprocid) select x.uid, null, x.GenProcID from ( select p.uid_parameter as uid, p.GenprocID from @DBQueueCurrent
10 p join DialogTable t with (readpast) on p.UID_Parameter = t.UID_DialogTable where t.TableType = 'U' ) as x exec QBM_PDBQueueInsert_Bulk 'QBM-K-CommonRebuildViewU'
11, @DBQueueElements_03 declare @DBQueueElements_04 QBM_YDBQueueRaw insert into @DBQueueElements_04 (object, subobject, genprocid) select x.uid, null, x.GenProcID
12 from ( select p.uid_parameter as uid, p.GenprocID from @DBQueueCurrent p join DialogTable t with (readpast) on p.UID_Parameter = t.UID_DialogTable where
13 t.TableType = 'R' ) as x exec QBM_PDBQueueInsert_Bulk 'QBM-K-CommonRebuildViewR', @DBQueueElements_04 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default
14 RAISERROR ('', 18, 1) WITH NOWAIT END CATCH endLabel: return end 
15

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.930

inserts DBQueue tasks has TRY/CATCH error handling

Summary: calls QBM_PDBQueueInsert_Bulk, QBM_PSessionErrorAdd; writes INSERT into; reads/joins QBMDBQueueCurrent, DialogTable

Declared parameters

ParameterTypeDirection
@SlotNumberintinput

DML targets

INSERT into

Read/join references

Config/session

Config: None extracted.

Session: None extracted.

DBQueue/tasks

QBM-K-CommonRebuildViewV QBM-K-CommonRebuildViewP QBM-K-CommonRebuildViewU QBM-K-CommonRebuildViewR

Temp tables / referenced variables

Temp: None extracted.

Variables: @SlotNumber @DBQueueCurrent @rowcount @DBQueueElements_01 @DBQueueElements_02 @DBQueueElements_03 @DBQueueElements_04

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.