dbo.TSB_PAfterMigrationJobCreate
SQL_STORED_PROCEDURE
Created 2025-06-27T18:01:21.050 · modified 2026-04-14T23:20:46.720 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@GenProcID | varchar | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| QBM_PJobCreate | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_YCursorbuffer | TYPE | ||
| QBM_YParameterList | TYPE | ||
| UNSAccountB | OBJECT_OR_COLUMN | ||
| dbo | QBM_FTHexPattern | 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 TSB_PAfterMigrationJobCreate (@GenProcID varchar(38) ) as begin declare @MyModule varchar(3) = 'TSB' SET XACT_ABORT OFF BEGIN 2 TRY declare @CountElements int declare @Puffer QBM_YCursorbuffer declare @ElementCount int declare @ElementIndex int declare @ElementLast int declare 3@SQL nvarchar(max) declare @Parameters QBM_YParameterList insert into @Parameters (Parameter1, ContentFull) values ('SQLStmt', @SQL) , ('WithoutTransaction' 4, 'True') select @CountElements = count(*) from UNSAccountB u where UID_Person is null and NeverConnectToPerson = 0 insert into @Puffer(ContentFull) select 5 concat('exec QBM_PJobCreate_HOTemplate_B ''UNSAccountB'', ''UID_Person is null and NeverConnectToPerson = 0 and UID_UNSAccountB like ''''', hp.HexPattern 6, ''''' '', @Columns = ''NeverConnectToPerson''' , ',@GenProcID = ''', @Genprocid, '''' , ', @AdditionalObjectKeysAffected = default' ) from dbo.QBM_FTHexPattern 7( case when @CountElements > 20000000 then 3 when @CountElements > 3000000 then 2 else 1 end ) as hp select @ElementCount = @@ROWCOUNT select @ElementIndex 8 = @@IDENTITY - @ElementCount +1 select @ElementLast = @@IDENTITY while @ElementIndex <= @ElementLast begin select top 1 @SQL = bu.ContentFull from @Puffer 9 bu where bu.ElementIndex = @ElementIndex update @Parameters set ContentFull = @SQL where Parameter1 = 'SQLStmt' exec QBM_PJobCreate 'VI.JobService.JobComponents.SQLComponent' 10 , 'Execute SQL' , @Parameters = @Parameters , @GenProcID = @Genprocid , @ObjectKeysAffected = default select @ElementIndex += 1 end END TRY BEGIN CATCH 11 exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH endLabel: return end 12
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:46.720
creates object-layer jobs via QBM_PJobCreate* has TRY/CATCH error handling
Summary: calls QBM_PJobCreate_HOTemplate_B, QBM_PJobCreate, SQL, QBM_PSessionErrorAdd; writes INSERT into; reads/joins UNSAccountB, QBM_FTHexPattern
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@GenProcID | varchar(38) | input |
DML targets
INSERT intoRead/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: @GenProcID @MyModule @CountElements @Puffer @ElementCount @ElementIndex @ElementLast @SQL @Parameters @Columns @Genprocid @AdditionalObjectKeysAffected @ROWCOUNT @IDENTITY @ObjectKeysAffected
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.