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.
Parameters
| Name | Type | Output |
|---|---|---|
@DBQueueCurrent | QBM_YDBQueueCurrent | no |
@UID_BasetreeAssignToUse | varchar | no |
@SlotNumber | int | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_PSQLCreate | OBJECT_OR_COLUMN | ||
| QBM_PWaitForSeconds | OBJECT_OR_COLUMN | ||
| QBM_YDBQueueCurrent | TYPE | ||
| dbo | QBM_FGICodeName | OBJECT_OR_COLUMN | |
| dbo | QBM_FGISessionErrorRethrow | OBJECT_OR_COLUMN | |
| dbo | QBM_FSQProcedureDef | OBJECT_OR_COLUMN |
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
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
| Parameter | Type | Direction |
|---|---|---|
@DBQueueCurrent | qbm_ydbqueuecurrent | input |
@UID_BasetreeAssignToUse | varchar(38) | input |
@SlotNumber | int | 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: @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 object | Relation | Evidence |
|---|---|---|
| dbo.ADS_ROrgHasADSGroup | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.LDP_ROrgHasLDAPGroup | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_ROrgHasQERAssign | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_ROrgHasQERResource | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_ROrgHasQERReuse | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_ROrgHasQERReuseUS | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.RMS_ROrgHasESet | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.RPS_ROrgHasRPSReport | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_ROrgHasTSBAccountDef | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_ROrgHasUNSGroupB | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_ROrgHasUNSGroupB1 | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_ROrgHasUNSGroupB2 | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_ROrgHasUNSGroupB3 | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.ADS_ROrgHasADSGroup | source text reference | has TRY/CATCH error handling |
| dbo.LDP_ROrgHasLDAPGroup | source text reference | has TRY/CATCH error handling |
| dbo.QER_ROrgHasQERAssign | source text reference | has TRY/CATCH error handling |
| dbo.QER_ROrgHasQERResource | source text reference | has TRY/CATCH error handling |
| dbo.QER_ROrgHasQERReuse | source text reference | has TRY/CATCH error handling |
| dbo.QER_ROrgHasQERReuseUS | source text reference | has TRY/CATCH error handling |
| dbo.RMS_ROrgHasESet | source text reference | has TRY/CATCH error handling |
| dbo.RPS_ROrgHasRPSReport | source text reference | has TRY/CATCH error handling |
| dbo.TSB_ROrgHasTSBAccountDef | source text reference | has TRY/CATCH error handling |
| dbo.TSB_ROrgHasUNSGroupB | source text reference | has TRY/CATCH error handling |
| dbo.TSB_ROrgHasUNSGroupB1 | source text reference | has TRY/CATCH error handling |
| dbo.TSB_ROrgHasUNSGroupB2 | source text reference | has TRY/CATCH error handling |
| dbo.TSB_ROrgHasUNSGroupB3 | source text reference | has TRY/CATCH error handling |