dbo.QBM_ZTableStatistics
SQL_STORED_PROCEDURE
Created 2025-06-27T17:58:58.483 · modified 2026-04-14T23:20:29.143 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@Slotnumber | int | no |
@TableName | varchar | no |
@dummy1 | varchar | no |
@GenProcID | varchar | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| DialogTable | OBJECT_OR_COLUMN | ||
| QBM_PJobCreate_Mnt | OBJECT_OR_COLUMN | ||
| QBM_PJournal | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_PTableStatistics | OBJECT_OR_COLUMN |
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
1create procedure QBM_ZTableStatistics ( @Slotnumber int , @TableName varchar(38) , @dummy1 varchar(38) , @GenProcID varchar(38) ) as begin declare 2 @DebugSwitch int = 0 declare @DebugMessage nvarchar (1000) declare @DebugLevel char(1) = 'W' SET XACT_ABORT OFF BEGIN TRY if @GenProcID is null or ISNULL 3(@TableName, '') not in (select t.TableName from DialogTable t with (readpast)) begin select @DebugMessage = CONCAT( OBJECT_NAME(@@procid) , ' empty values found ' 4 , ' GenProcID = ' , case when ISNULL(@GenProcID, '') = '' then ' <empty> ' else @GenProcID end , ' TableName = ' , case when ISNULL(@TableName, '') = 5'' then ' <empty> ' else @TableName end ) exec QBM_PJournal @DebugMessage, @@procid, 'D', @DebugLevel select @GenProcID = NEWID() end if 1=0 begin exec 6 QBM_PTableStatistics @TableName, @GenProcID end else begin declare @SQL33734 nvarchar(max) = concat('exec QBM_PTableStatistics ''', @TableName, ''', ''' 7, @GenProcID, '''' ) exec QBM_PJobCreate_Mnt @SQL33734, @GenProcID end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH 8 NOWAIT END CATCH ende: return end 9
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.143
creates object-layer jobs via QBM_PJobCreate* has TRY/CATCH error handling
Summary: calls QBM_PJournal, QBM_PTableStatistics, QBM_PJobCreate_Mnt, QBM_PSessionErrorAdd; reads/joins DialogTable
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@Slotnumber | int | input |
@TableName | varchar(38) | input |
@dummy1 | varchar(38) | input |
@GenProcID | varchar(38) | input |
DML targets
None extracted.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 @TableName @dummy1 @GenProcID @DebugSwitch @DebugMessage @DebugLevel @procid @SQL33734
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.