dbo.ADS_PAfterMigrationJobCreate

SQL_STORED_PROCEDURE

Created 2025-06-27T18:01:23.327 · modified 2026-04-14T23:20:48.917 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
@GenProcIDvarcharno

Referenced objects

SchemaObjectColumn/minorClass
ADSAccountOBJECT_OR_COLUMN
ADSContactOBJECT_OR_COLUMN
QBM_PJobCreateOBJECT_OR_COLUMN
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QBM_YCursorbufferTYPE
QBM_YParameterListTYPE
dboQBM_FTHexPatternOBJECT_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 ADS_PAfterMigrationJobCreate (@GenProcID varchar(38) ) as begin declare @MyModule varchar(3) = 'ADS' 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 ADSAccount u where UID_Person is null and NeverConnectToPerson = 0 insert into @Puffer(ContentFull) select
5 concat('exec QBM_PJobCreate_HOTemplate_B ''ADSAccount'', ''UID_Person is null and NeverConnectToPerson = 0 and UID_ADSAccount 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   select @CountElements
11 = count(*) from ADSContact u where UID_Person is null and NeverConnectToPerson = 0 insert into @Puffer(ContentFull) select concat('exec QBM_PJobCreate_HOTemplate_B ''ADSContact'', ''UID_Person is null and NeverConnectToPerson = 0 and UID_ADSContact like '''''
12, hp.HexPattern, ''''' '', @Columns = ''NeverConnectToPerson''' , ',@GenProcID = ''', @Genprocid, '''' , ', @AdditionalObjectKeysAffected = default' ) 
13from dbo.QBM_FTHexPattern( case when @CountElements > 20000000 then 3  when @CountElements > 3000000 then 2  else 1 end ) as hp select @ElementCount = 
14@@ROWCOUNT select @ElementIndex = @@IDENTITY - @ElementCount +1 select @ElementLast = @@IDENTITY while @ElementIndex <= @ElementLast begin select top 1
15 @SQL = bu.ContentFull from @Puffer bu where bu.ElementIndex = @ElementIndex update @Parameters set ContentFull = @SQL where Parameter1 = 'SQLStmt' exec
16 QBM_PJobCreate 'VI.JobService.JobComponents.SQLComponent' , 'Execute SQL' , @Parameters = @Parameters , @GenProcID = @Genprocid , @ObjectKeysAffected 
17= default select @ElementIndex += 1 end  END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH endLabel: return
18 end 
19

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:48.917

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 ADSAccount, QBM_FTHexPattern, ADSContact

Declared parameters

ParameterTypeDirection
@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: @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.