dbo.LDP_PAfterMigrationJobCreate

SQL_STORED_PROCEDURE

Created 2026-04-14T23:20:49.923 · modified 2026-04-14T23:20:49.923 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
@GenProcIDvarcharno

Referenced objects

SchemaObjectColumn/minorClass
LDAPAccountOBJECT_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 LDP_PAfterMigrationJobCreate (@GenProcID varchar(38) ) as begin declare @MyModule varchar(3) = 'LDP' 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 LDAPAccount u where UID_Person is null and NeverConnectToPerson = 0 insert into @Puffer(ContentFull) select
5 concat('exec QBM_PJobCreate_HOTemplate_B ''LDAPAccount'', ''UID_Person is null and NeverConnectToPerson = 0 and UID_LDAPAccount 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:49.923

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 LDAPAccount, QBM_FTHexPattern

Declared parameters

ParameterTypeDirection
@GenProcIDvarchar(38)input

DML targets

INSERT into

Read/join references

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.