dbo.QER_PSlotResetOnInvalidRoot_L

SQL_STORED_PROCEDURE

Created 2025-06-27T17:59:27.280 · modified 2026-04-14T23:20:36.287 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
@DBQueueCurrentQBM_YDBQueueCurrentno
@UID_BasetreeAssignToUsevarcharno
@SlotNumberintno

Referenced objects

SchemaObjectColumn/minorClass
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QBM_PSQLCreateOBJECT_OR_COLUMN
QBM_PWaitForSecondsOBJECT_OR_COLUMN
QBM_YDBQueueCurrentTYPE
dboQBM_FGICodeNameOBJECT_OR_COLUMN
dboQBM_FGISessionErrorRethrowOBJECT_OR_COLUMN
dboQBM_FSQProcedureDefOBJECT_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

1create   procedure QER_PSlotResetOnInvalidRoot_L (@DBQueueCurrent QBM_YDBQueueCurrent readonly , @UID_BasetreeAssignToUse varchar(38) , @SlotNumber
2 int ) as begin declare @erg int = 0 declare @DebugSwitch int = 0 declare @UnComment bit = 1 ,@Unformat bit = 1 declare @DebugLevel char(1) = 'W' declare
3 @ProcName varchar(30) declare @ProcDef nvarchar(max) declare @ProcBody nvarchar(max) declare @OutstandingTest nvarchar(1000) declare @SourceName nvarchar
4(1000) declare @anlegenklappt bit = 0 declare @waitTime float SET XACT_ABORT OFF BEGIN TRY select @ProcName = dbo.QBM_FGICodeName('PSR', @UID_BasetreeAssignToUse
5)  if @DebugSwitch > 0 begin select @UnComment = 0 , @Unformat = 0 print @ProcName  end while not exists (select top 1 1 from sys.objects o where o.name
6 = @ProcName ) begin if @DebugSwitch > 0 begin print 'dann bauen wir eine' end select @waitTime = convert(float, @@spid) / 1000.0 exec QBM_PWaitForSeconds
7 @waittime select @ProcBody = CONCAT( '
8 declare @SlotNumberSource int
9 declare @SlotNumberTarget int
10 declare @DBQueueToMove QBM_YDBQCSCurrentToMove 
11 
12	SET XACT_ABORT OFF
13
14 	-- befüllen mit den interessanten Einträgen
15	insert into @DBQueueToMove(UID_DialogDBQueue)
16		select cul.UID_DialogDBQueue
17			from @DBQueueCurrent cul  -- Suchbedingung
18									join BaseTree b with (readpast) on cul.UID_Parameter = b.UID_Org
19									left outer join OrgRootAssign ra with (readpast) on ra.UID_OrgRoot = b.UID_OrgRoot
20																	and ra.UID_BaseTreeAssign = '''
21, @UID_BasetreeAssignToUse, '''
22																	and ra.IsAssignmentAllowed = 1
23			where ra.UID_OrgRoot is null
24
25	if @@ROWCOUNT > 0
26	 begin
27
28		select @SlotNumberSource = @SlotNumber -- die übergebene Slotnummer
29		select @SlotnumberTarget = 0
30																			
31		exec @ret = QBM_PDBQCS_CurrentMoveSlot @DBQueueToMove, @SlotNumberSource, @SlotnumberTarget
32
33	  end
34
35				'
36 ) select @SourceName = concat('QER_PSlotResetOnInvalidRoot_L' , '(' , @UID_BasetreeAssignToUse , ')' ) select @procdef = dbo.QBM_FSQProcedureDef(@ProcName
37 , '@DBQueueCurrent QBM_YDBQueueCurrent readonly
38												, @SlotNumber int ' , @ProcBody , @SourceName ) if @DebugSwitch > 0 begin print @procdef 
39end    begin transaction if not exists (select top 1 1 from sys.objects o where o.name = @ProcName ) begin BEGIN TRY exec QBM_PSQLCreate @Procname, 'P'
40, @procDef, @UnComment = @UnComment, @Unformat = @Unformat select @anlegenklappt = 1 END TRY BEGIN CATCH if @DebugSwitch > 0 begin print 'catch beim Anlegen?'
41 end select @anlegenklappt = 0  END CATCH end  if @anlegenklappt = 1 begin commit end else begin rollback  end  select @waitTime = (convert(float, @@spid
42) / 1000.0) + 0.4 exec QBM_PWaitForSeconds @waittime end   exec @erg = @ProcName @DBQueueCurrent, @SlotNumber END TRY BEGIN CATCH exec QBM_PSessionErrorAdd
43 default declare @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow() RAISERROR (@Rethrow, 18, 1) WITH NOWAIT END CATCH  endLabel: return (@erg) end
44 
45

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

has TRY/CATCH error handling

Summary: calls QBM_PWaitForSeconds, QBM_PDBQCS_CurrentMoveSlot, QBM_PSQLCreate, QBM_PSessionErrorAdd; writes INSERT into; reads/joins sys, BaseTree, OrgRootAssign

Declared parameters

ParameterTypeDirection
@DBQueueCurrentqbm_ydbqueuecurrentinput
@UID_BasetreeAssignToUsevarchar(38)input
@SlotNumberintinput

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: @DBQueueCurrent @UID_BasetreeAssignToUse @SlotNumber @erg @DebugSwitch @UnComment @Unformat @DebugLevel @ProcName @ProcDef @ProcBody @OutstandingTest @SourceName @anlegenklappt @waitTime @spid @waittime @SlotNumberSource @SlotNumberTarget @DBQueueToMove @ROWCOUNT @SlotnumberTarget @ret @procdef @Procname @procDef @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 objectRelationEvidence
dbo.ADS_ROrgHasADSGroupSQL expression dependencyOBJECT_OR_COLUMN
dbo.LDP_ROrgHasLDAPGroupSQL expression dependencyOBJECT_OR_COLUMN
dbo.QER_ROrgHasQERAssignSQL expression dependencyOBJECT_OR_COLUMN
dbo.QER_ROrgHasQERResourceSQL expression dependencyOBJECT_OR_COLUMN
dbo.QER_ROrgHasQERReuseSQL expression dependencyOBJECT_OR_COLUMN
dbo.QER_ROrgHasQERReuseUSSQL expression dependencyOBJECT_OR_COLUMN
dbo.RMS_ROrgHasESetSQL expression dependencyOBJECT_OR_COLUMN
dbo.RPS_ROrgHasRPSReportSQL expression dependencyOBJECT_OR_COLUMN
dbo.TSB_ROrgHasTSBAccountDefSQL expression dependencyOBJECT_OR_COLUMN
dbo.TSB_ROrgHasUNSGroupBSQL expression dependencyOBJECT_OR_COLUMN
dbo.TSB_ROrgHasUNSGroupB1SQL expression dependencyOBJECT_OR_COLUMN
dbo.TSB_ROrgHasUNSGroupB2SQL expression dependencyOBJECT_OR_COLUMN
dbo.TSB_ROrgHasUNSGroupB3SQL expression dependencyOBJECT_OR_COLUMN
dbo.ADS_ROrgHasADSGroupsource text referencehas TRY/CATCH error handling
dbo.LDP_ROrgHasLDAPGroupsource text referencehas TRY/CATCH error handling
dbo.QER_ROrgHasQERAssignsource text referencehas TRY/CATCH error handling
dbo.QER_ROrgHasQERResourcesource text referencehas TRY/CATCH error handling
dbo.QER_ROrgHasQERReusesource text referencehas TRY/CATCH error handling
dbo.QER_ROrgHasQERReuseUSsource text referencehas TRY/CATCH error handling
dbo.RMS_ROrgHasESetsource text referencehas TRY/CATCH error handling
dbo.RPS_ROrgHasRPSReportsource text referencehas TRY/CATCH error handling
dbo.TSB_ROrgHasTSBAccountDefsource text referencehas TRY/CATCH error handling
dbo.TSB_ROrgHasUNSGroupBsource text referencehas TRY/CATCH error handling
dbo.TSB_ROrgHasUNSGroupB1source text referencehas TRY/CATCH error handling
dbo.TSB_ROrgHasUNSGroupB2source text referencehas TRY/CATCH error handling
dbo.TSB_ROrgHasUNSGroupB3source text referencehas TRY/CATCH error handling