dbo.QBM_PSlotResetOnMissingItem_L
SQL_STORED_PROCEDURE
Created 2025-06-27T17:57:37.547 · modified 2026-04-14T23:16:09.200 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@DBQueueCurrent | QBM_YDBQueueCurrent | no |
@TableName | varchar | no |
@PKColumnName | varchar | no |
@SlotNumber | int | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| QBM_PJournal | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_PSQLCreate | OBJECT_OR_COLUMN | ||
| QBM_PWaitForSeconds | OBJECT_OR_COLUMN | ||
| QBM_YDBQueueCurrent | TYPE | ||
| dbo | QBM_FGIBitPatternXMarkedForDel | OBJECT_OR_COLUMN | |
| dbo | QBM_FGICodeName | OBJECT_OR_COLUMN | |
| dbo | QBM_FGIColumnExists | 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 QBM_PSlotResetOnMissingItem_L (@DBQueueCurrent QBM_YDBQueueCurrent readonly , @TableName varchar(30) , @PKColumnName varchar(30 2) , @SlotNumber int ) as begin declare @erg int = 0 declare @DebugSwitch int = 0 declare @DebugLevel char(1) = 'W' declare @ProcName varchar(30) declare 3 @ProcDef nvarchar(max) declare @ProcBody nvarchar(max) declare @OutstandingTest nvarchar(1000) declare @SourceName nvarchar(1000) declare @ErrorMessage 4 nvarchar(4000) declare @ErrorSeverity int declare @ErrorState int declare @anlegenklappt bit = 0 declare @waitTime float declare @UnComment bit = 0 ,@Unformat 5 bit = 1 SET XACT_ABORT OFF BEGIN TRY select @ProcName = dbo.QBM_FGICodeName('PSR', concat(@TableName, @PKColumnName )) if @DebugSwitch > 0 begin select 6 @UnComment = 0 , @Unformat = 0 print @ProcName end if dbo.QBM_FGIColumnExists(@TableName, 'XMarkedForDeletion') = 1 begin select @OutstandingTest = str 7(dbo.QBM_FGIBitPatternXMarkedForDel('|OutStanding|', 0)) + ' & b.XMarkedForDeletion > 0' end else begin select @OutstandingTest = '' end while not exists 8 (select top 1 1 from sys.objects o where o.name = @ProcName ) begin if @DebugSwitch > 0 begin print 'dann bauen wir eine' end select @waitTime = convert 9(float, @@spid) / 1000.0 exec QBM_PWaitForSeconds @waittime select @ProcBody = CONCAT( ' 10 declare @SlotNumberSource int 11 declare @SlotNumberTarget int 12 declare @DBQueueToMove QBM_YDBQCSCurrentToMove 13 declare @outs int = 0 14 declare @missing int = 0 15 declare @DebugLevel varchar(1) = ''' 16, @DebugLevel , ''' 17 18 SET XACT_ABORT OFF 19 20 -- befüllen mit den interessanten Einträgen 21 insert into @DBQueueToMove(UID_DialogDBQueue) 22 select cul.UID_DialogDBQueue 23 from @DBQueueCurrent cul -- Suchbedingung 24 left outer join ' 25, @TableName, ' b with (readpast) on cul.UID_Parameter = b.', @PKColumnName , ' 26 where b.', @PKColumnName , ' is null 27 28 select @missing = @@rowcount 29 30 ' 31, case when @OutstandingTest > ' ' then concat(' 32 insert into @DBQueueToMove(UID_DialogDBQueue) 33 select cul.UID_DialogDBQueue 34 from @DBQueueCurrent cul -- Suchbedingung 35 join ' 36, @TableName, ' b with (readpast) on cul.UID_Parameter = b.', @PKColumnName , ' 37 where ', @OutstandingTest, ' 38 39 select @outs = @@rowcount 40 41 if @outs > 0 42 begin 43 declare @msg nvarchar(1000) = ''#LDS#DBQueue task not processed because of outstanding elements. Table: {0}.|'' + ''' 44, @TableName, ''' + ''|'' 45 46 exec QBM_PJournal @msg, @@procid, ''W'', @DebugLevel, 20 47 end ') else '' end, ' 48 49 if @outs + @missing > 0 50 begin 51 52 select @SlotNumberSource = @SlotNumber -- die übergebene Slotnummer 53 select @SlotnumberTarget = 0 54 55 exec @ret = QBM_PDBQCS_CurrentMoveSlot @DBQueueToMove, @SlotNumberSource, @SlotnumberTarget 56 57 end 58 59 ' 60 ) select @SourceName = concat('QBM_PSlotResetOnMissingItem_L' , '(' , @TableName , '.' , @PKColumnName , ')' ) select @procdef = dbo.QBM_FSQProcedureDef 61(@ProcName , '@DBQueueCurrent QBM_YDBQueueCurrent readonly 62 , @SlotNumber int 63 ' , @ProcBody , @SourceName ) if @DebugSwitch > 0 64 begin print @procdef end begin transaction if not exists (select top 1 1 from sys.objects o where o.name = @ProcName ) begin BEGIN TRY exec QBM_PSQLCreate 65 @Procname, 'P', @procDef, @UnComment = @UnComment, @Unformat = @Unformat select @anlegenklappt = 1 END TRY BEGIN CATCH select @anlegenklappt = 0 END 66CATCH end if @anlegenklappt = 1 begin commit select @ErrorMessage = 'angelegt ' + @SourceName end else begin rollback select @ErrorMessage = 'bumm ' 67 + @SourceName end if @DebugSwitch > 0 begin exec QBM_PJournal @Errormessage, @@procid, 'D', @DebugLevel end select @waitTime = (convert(float, @@spid 68) / 1000.0) + 0.4 exec QBM_PWaitForSeconds @waittime end exec @erg = @ProcName @DBQueueCurrent, @SlotNumber END TRY BEGIN CATCH exec QBM_PSessionErrorAdd 69 default declare @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow() RAISERROR (@Rethrow, 18, 1) WITH NOWAIT END CATCH endLabel: return (@erg) end 70 71
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:16:09.200
has TRY/CATCH error handling
Summary: calls QBM_PWaitForSeconds, QBM_PJournal, QBM_PDBQCS_CurrentMoveSlot, QBM_PSQLCreate, QBM_PSessionErrorAdd; writes INSERT into; reads/joins sys
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@DBQueueCurrent | qbm_ydbqueuecurrent | input |
@TableName | varchar(30) | input |
@PKColumnName | varchar(30) | input |
@SlotNumber | int | input |
DML targets
INSERT intoCalled routines
Read/join references
SQL dependency metadata
Config/session
Config: None extracted.
Session: None extracted.
DBQueue/tasks
None extracted.Temp tables / referenced variables
Temp: #LDS #DBQueue
Variables: @DBQueueCurrent @TableName @PKColumnName @SlotNumber @erg @DebugSwitch @DebugLevel @ProcName @ProcDef @ProcBody @OutstandingTest @SourceName @ErrorMessage @ErrorSeverity @ErrorState @anlegenklappt @waitTime @UnComment @Unformat @spid @waittime @SlotNumberSource @SlotNumberTarget @DBQueueToMove @outs @missing @rowcount @msg @procid @SlotnumberTarget @ret @procdef @Procname @procDef @Errormessage @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_RAccountInADSGroup | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.ADS_RADSMachineInADSGroup | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.ADS_RBaseTreeHasObject | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.ADS_RBaseTreeOwnsObjectPrepair | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.ADS_RContactInADSGroup | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.ADS_RGroupInADSGroup | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.ADS_ROrgHasADSGroup | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.ADS_RPersonHasObject | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.CPL_RComplianceCheckForPerson | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.LDP_RAccountInLDAPGroup | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.LDP_RBaseTreeHasObject | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.LDP_RBaseTreeOwnsObjectPrepair | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.LDP_RGroupInLDAPGroup | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.LDP_ROrgHasLDAPGroup | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.LDP_RPersonHasObject | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_RAccProductGroupCollection | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_RBaseTreeCollectionF | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_RBaseTreeHasObject | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_RBaseTreeHasObjectExtAtt | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_RHelperHardwareOrg | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_RHelperHeadOrg | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_RHelperHeadPerson | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_RHelperPersonOrg | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_RHelperWorkDeskOrg | 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.QER_RPersonCheckDynUser | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_RPersonHasObject | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_RPersonHasObjectExtAtt | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_RPersonHasQERAssign | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_RPersonHasQERResource | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_RPersonHasQERReuse | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_RPersonHasQERReuseUS | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.RMB_RHelperHardwareOrg | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.RMB_RHelperPersonOrg | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.RMB_RHelperWorkDeskOrg | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.RMS_RBaseTreeHasObject | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.RMS_RESetHasEntitlement | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.RMS_ROrgHasESet | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.RMS_RPersonHasESet | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.RMS_RPersonHasObject | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.RMS_RWorkDeskHasESet | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.RPS_RBaseTreeHasObject | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.RPS_ROrgHasRPSReport | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.RPS_RPersonHasObject | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.RPS_RPersonHasRPSReport | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_RBaseTreeHasObject | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_RBaseTreeOwnsObjectPrepair | 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.TSB_RPersonHasObject | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_RPersonHasTSBAccountDef | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_RUNSAccountBHasUNSItemB | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_RUNSAccountBInUNSGroupB | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_RUNSAccountBInUNSGroupB1 | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_RUNSAccountBInUNSGroupB2 | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_RUNSAccountBInUNSGroupB3 | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_RUNSGroupB1InUNSGroupB1 | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_RUNSGroupB2InUNSGroupB2 | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_RUNSGroupB3InUNSGroupB3 | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_RUNSGroupBHasUNSItemB | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.TSB_RUNSGroupBInUNSGroupB | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.ADS_RAccountInADSGroup | source text reference | has TRY/CATCH error handling |
| dbo.ADS_RADSMachineInADSGroup | source text reference | has TRY/CATCH error handling |
| dbo.ADS_RBaseTreeHasObject | source text reference | has TRY/CATCH error handling |
| dbo.ADS_RBaseTreeOwnsObjectPrepair | source text reference | has TRY/CATCH error handling |
| dbo.ADS_RContactInADSGroup | source text reference | has TRY/CATCH error handling |
| dbo.ADS_RGroupInADSGroup | source text reference | has TRY/CATCH error handling |
| dbo.ADS_ROrgHasADSGroup | source text reference | has TRY/CATCH error handling |
| dbo.ADS_RPersonHasObject | source text reference | has TRY/CATCH error handling |
| dbo.CPL_RComplianceCheckForPerson | source text reference | has TRY/CATCH error handling |
| dbo.LDP_RAccountInLDAPGroup | source text reference | has TRY/CATCH error handling |
| dbo.LDP_RBaseTreeHasObject | source text reference | has TRY/CATCH error handling |
| dbo.LDP_RBaseTreeOwnsObjectPrepair | source text reference | has TRY/CATCH error handling |
| dbo.LDP_RGroupInLDAPGroup | source text reference | has TRY/CATCH error handling |
| dbo.LDP_ROrgHasLDAPGroup | source text reference | has TRY/CATCH error handling |
| dbo.LDP_RPersonHasObject | source text reference | has TRY/CATCH error handling |
| dbo.QER_RAccProductGroupCollection | source text reference | has TRY/CATCH error handling |
| dbo.QER_RBaseTreeCollectionF | source text reference | has TRY/CATCH error handling |
| dbo.QER_RBaseTreeHasObject | source text reference | has TRY/CATCH error handling |
| dbo.QER_RBaseTreeHasObjectExtAtt | source text reference | has TRY/CATCH error handling |
| dbo.QER_RHelperHardwareOrg | source text reference | has TRY/CATCH error handling |
| dbo.QER_RHelperHeadOrg | source text reference | has TRY/CATCH error handling |
| dbo.QER_RHelperHeadPerson | source text reference | has TRY/CATCH error handling |
| dbo.QER_RHelperPersonOrg | source text reference | has TRY/CATCH error handling |
| dbo.QER_RHelperWorkDeskOrg | 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.QER_RPersonCheckDynUser | source text reference | has TRY/CATCH error handling |
| dbo.QER_RPersonHasObject | source text reference | has TRY/CATCH error handling |
| dbo.QER_RPersonHasObjectExtAtt | source text reference | has TRY/CATCH error handling |
| dbo.QER_RPersonHasQERAssign | source text reference | has TRY/CATCH error handling |
| dbo.QER_RPersonHasQERResource | source text reference | has TRY/CATCH error handling |
| dbo.QER_RPersonHasQERReuse | source text reference | has TRY/CATCH error handling |
| dbo.QER_RPersonHasQERReuseUS | source text reference | has TRY/CATCH error handling |
| dbo.RMB_RHelperHardwareOrg | source text reference | has TRY/CATCH error handling |
| dbo.RMB_RHelperPersonOrg | source text reference | has TRY/CATCH error handling |
| dbo.RMB_RHelperWorkDeskOrg | source text reference | has TRY/CATCH error handling |
| dbo.RMS_RBaseTreeHasObject | source text reference | has TRY/CATCH error handling |
| dbo.RMS_RESetHasEntitlement | source text reference | has TRY/CATCH error handling |
| dbo.RMS_ROrgHasESet | source text reference | has TRY/CATCH error handling |
| dbo.RMS_RPersonHasESet | source text reference | has TRY/CATCH error handling |
| dbo.RMS_RPersonHasObject | source text reference | has TRY/CATCH error handling |
| dbo.RMS_RWorkDeskHasESet | source text reference | has TRY/CATCH error handling |
| dbo.RPS_RBaseTreeHasObject | source text reference | has TRY/CATCH error handling |
| dbo.RPS_ROrgHasRPSReport | source text reference | has TRY/CATCH error handling |
| dbo.RPS_RPersonHasObject | source text reference | has TRY/CATCH error handling |
| dbo.RPS_RPersonHasRPSReport | source text reference | has TRY/CATCH error handling |
| dbo.TSB_RBaseTreeHasObject | source text reference | has TRY/CATCH error handling |
| dbo.TSB_RBaseTreeOwnsObjectPrepair | 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 |
| dbo.TSB_RPersonHasObject | source text reference | has TRY/CATCH error handling |
| dbo.TSB_RPersonHasTSBAccountDef | source text reference | has TRY/CATCH error handling |
| dbo.TSB_RUNSAccountBHasUNSItemB | source text reference | has TRY/CATCH error handling |
| dbo.TSB_RUNSAccountBInUNSGroupB | source text reference | has TRY/CATCH error handling |
| dbo.TSB_RUNSAccountBInUNSGroupB1 | source text reference | has TRY/CATCH error handling |
| dbo.TSB_RUNSAccountBInUNSGroupB2 | source text reference | has TRY/CATCH error handling |
| dbo.TSB_RUNSAccountBInUNSGroupB3 | source text reference | has TRY/CATCH error handling |
| dbo.TSB_RUNSGroupB1InUNSGroupB1 | source text reference | has TRY/CATCH error handling |
| dbo.TSB_RUNSGroupB2InUNSGroupB2 | source text reference | has TRY/CATCH error handling |
| dbo.TSB_RUNSGroupB3InUNSGroupB3 | source text reference | has TRY/CATCH error handling |
| dbo.TSB_RUNSGroupBHasUNSItemB | source text reference | has TRY/CATCH error handling |
| dbo.TSB_RUNSGroupBInUNSGroupB | source text reference | has TRY/CATCH error handling |