dbo.QBM_PJobCreate_HOTemplate_L
SQL_STORED_PROCEDURE
Created 2025-06-27T18:01:00.060 · modified 2026-04-14T23:20:31.520 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@objecttype | nvarchar | no |
@XObjectKeys | QBM_YParameterList | no |
@Columns | nvarchar | no |
@GenProcID | varchar | no |
@AdditionalObjectKeysAffected | QBM_YParameterList | no |
@ConnectionVariables | nvarchar | no |
@AuthenticationString | nvarchar | no |
@SingleTransaction | bit | no |
@isToFreezeOnError | bit | no |
@Retries | int | no |
@priority | int | no |
@Jobchainname | nvarchar | no |
@StartAt | datetime | no |
@BasisObjectKey | varchar | no |
@XUser | nvarchar | no |
@WhereClauseAdditional | nvarchar | no |
@checkForExisting | bit | no |
@QueueName | nvarchar | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| QBM_P5C881179A5B9B0CDCAE541D_ | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_YObjectKeyAndPortion | TYPE | ||
| QBM_YParameterList | TYPE | ||
| dbo | QBM_FGISessionErrorRethrow | 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_PJobCreate_HOTemplate_L( @objecttype nvarchar(255), @XObjectKeys QBM_YParameterList readonly , @Columns nvarchar(max) 2 , @GenProcID varchar(38) , @AdditionalObjectKeysAffected QBM_YParameterList readonly , @ConnectionVariables nvarchar(max) = null , @AuthenticationString 3 nvarchar(max) = null , @SingleTransaction bit = 1 , @isToFreezeOnError bit = 0 , @Retries int = 0 , @priority int = 5 , @Jobchainname nvarchar(256) = 4 null , @StartAt datetime = null , @BasisObjectKey varchar(138) = N'' , @XUser nvarchar(64) = null , @WhereClauseAdditional nvarchar(max) = '' , @checkForExisting 5 bit = 0 , @QueueName nvarchar(256) = null ) as begin declare @Portion int declare @PortionMax int declare @ElementsMax int declare @ElementsLen int declare 6 @AllObjectKeysIn QBM_YObjectKeyAndPortion SET XACT_ABORT OFF BEGIN TRY select top 1 @ElementsLen = len(Parameter1) from @XObjectKeys if isnull(@ElementsLen 7, 0) = 0 begin goto endLabel end select @ElementsMax = 20000 / @ElementsLen if @ElementsMax > 450 begin select @ElementsMax = 450 end insert into @AllObjectKeysIn 8 (ObjectKey, Portion) select o.Parameter1 , ((ROW_NUMBER() over( order by o.Parameter1) ) / @ElementsMax) + 1 from @XObjectKeys o select @PortionMax = 9max(i.Portion) , @Portion = 1 from @AllObjectKeysIn i while @Portion <= @PortionMax begin exec QBM_P5C881179A5B9B0CDCAE541D_ @Portion = @Portion , @AllObjectKeysIn 10 = @AllObjectKeysIn , @objecttype = @objecttype , @Columns = @Columns , @GenProcID = @GenProcID , @AdditionalObjectKeysAffected = @AdditionalObjectKeysAffected 11 , @ConnectionVariables = @ConnectionVariables , @AuthenticationString = @AuthenticationString , @SingleTransaction = @SingleTransaction , @isToFreezeOnError 12 = @isToFreezeOnError , @Retries = @Retries , @priority = @priority , @Jobchainname = @Jobchainname , @StartAt = @StartAt , @BasisObjectKey = @BasisObjectKey 13 , @XUser = @XUser , @WhereClauseAdditional = @WhereClauseAdditional , @checkForExisting = @checkForExisting , @QueueName = @QueueName select @Portion 14+= 1 end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default declare @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow() RAISERROR (@Rethrow, 18 15, 1) WITH NOWAIT END CATCH endLabel: return end 16
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:31.520
creates object-layer jobs via QBM_PJobCreate* has TRY/CATCH error handling
Summary: calls QBM_P5C881179A5B9B0CDCAE541D_, QBM_PSessionErrorAdd; writes INSERT into
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@objecttype | nvarchar(255) | input |
@XObjectKeys | qbm_yparameterlist | input |
@Columns | nvarchar | input |
@GenProcID | varchar(38) | input |
@AdditionalObjectKeysAffected | qbm_yparameterlist | input |
@ConnectionVariables | nvarchar | input |
@AuthenticationString | nvarchar | input |
@SingleTransaction | bit | input |
@isToFreezeOnError | bit | input |
@Retries | int | input |
@priority | int | input |
@Jobchainname | nvarchar(256) | input |
@StartAt | datetime | input |
@BasisObjectKey | varchar(138) | input |
@XUser | nvarchar(64) | input |
@WhereClauseAdditional | nvarchar | input |
@checkForExisting | bit | input |
@QueueName | nvarchar(256) | input |
DML targets
INSERT intoCalled routines
Read/join references
None extracted.
SQL dependency metadata
Config/session
Config: None extracted.
Session: None extracted.
DBQueue/tasks
None extracted.Temp tables / referenced variables
Temp: None extracted.
Variables: @objecttype @XObjectKeys @Columns @GenProcID @AdditionalObjectKeysAffected @ConnectionVariables @AuthenticationString @SingleTransaction @isToFreezeOnError @Retries @priority @Jobchainname @StartAt @BasisObjectKey @XUser @WhereClauseAdditional @checkForExisting @QueueName @Portion @PortionMax @ElementsMax @ElementsLen @AllObjectKeysIn @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.ATT_P59CCD84DFA68B81E1B20B65_ | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PJobCreate_HOTemplate_B | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.ATT_P59CCD84DFA68B81E1B20B65_ | source text reference | creates object-layer jobs via QBM_PJobCreate* |
| dbo.QBM_PJobCreate_HOTemplate_B | source text reference | creates object-layer jobs via QBM_PJobCreate*, has TRY/CATCH error handling |