dbo.QBM_PDBQueuePondEnd

SQL_STORED_PROCEDURE

Created 2025-06-27T17:57:37.587 · modified 2026-04-14T23:16:09.223 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
@PondGroupvarcharno

Referenced objects

SchemaObjectColumn/minorClass
QBM_P40B0C8AE71E45BA9C883A96_OBJECT_OR_COLUMN
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QBM_YCursorBufferTYPE
QBMDBQueuePondOBJECT_OR_COLUMN
QBMDBQueueTaskMetricOBJECT_OR_COLUMN
dboQBM_FCVDatetimeToStringOBJECT_OR_COLUMN
dboQBM_FGITableCountAllOBJECT_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 QBM_PDBQueuePondEnd (@PondGroup varchar(38) ) as begin declare @TaskDefs QBM_YCursorBuffer declare @ElementCount int declare
2 @ElementIndex int declare @UID_Task varchar(38)    declare @PondGroupNew varchar(38) = @PondGroup declare @AnzahlPondGesamt bigint = dbo.QBM_FGITableCountAll
3('QBMDBQueuePond') declare @DebugSwitch int = 0 SET XACT_ABORT OFF BEGIN TRY     if @DebugSwitch > 0 begin print dbo.QBM_FCVDatetimeToString(GETUTCDATE
4()) + ' Anfang ' end if @AnzahlPondGesamt > 2500000 or exists ( select top 1 1 from ( select p.PondGroup, COUNT(*) as Anzahl, COUNT(distinct checksum(p.UID_Task
5 , isnull(p.Object, '') , isnull(p.SubObject, ''))) as AnzahlDistinct from QBMDBQueuePond p where p.PondGroup = @PondGroup  group by p.PondGroup ) as x
6 where x.AnzahlDistinct * 5 < x.Anzahl or x.Anzahl > 500000 ) begin if @DebugSwitch > 0 begin print 'wir verdichten' end select @PondGroupNew = NEWID()
7  insert into QBMDBQueuePond(UID_Task, Object, SubObject, GenProcID  , PondGroup, InsertDate) select UID_Task, Object , SubObject , max(GenProcID) as GenProcID
8  , @PondGroupNew as PondGroup, MAX(InsertDate) as InsertDate from QBMDBQueuePond p where p.PondGroup = @PondGroup  group by p.UID_Task, p.Object , p.SubObject
9 end insert into @TaskDefs (UID1) select x.UID_Task from ( select distinct t.UID_Task from QBMDBQueuePond t where t.PondGroup = @PondGroupNew  ) as x join
10 QBMDBQueueTaskMetric mo on x.UID_Task = mo.UID_Task order by mo.PathLength desc select @ElementCount = @@ROWCOUNT select @ElementIndex = 1     while @ElementIndex
11 <= @ElementCount begin select top 1 @UID_Task = bu.UID1       from @TaskDefs bu where bu.ElementIndex = @ElementIndex if @DebugSwitch > 0 begin print 
12dbo.QBM_FCVDatetimeToString(GETUTCDATE()) + ' Task ' + @UID_Task end exec QBM_P40B0C8AE71E45BA9C883A96_ @PondGroupNew , @UID_Task select @ElementIndex 
13+= 1 end     if @DebugSwitch > 0 begin print dbo.QBM_FCVDatetimeToString(GETUTCDATE()) + ' Kennzeichnen ' + @PondGroupNew end update QBMDBQueuePond set
14 GenProcID = 'DELETE' where PondGroup = @PondGroupNew if @PondGroup <> @PondGroupNew begin if @DebugSwitch > 0 begin print dbo.QBM_FCVDatetimeToString(GETUTCDATE
15()) + ' Kennzeichnen ' + @PondGroup end update QBMDBQueuePond set GenProcID = 'DELETE' where PondGroup = @PondGroup end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd
16 default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH endLabel: if @DebugSwitch > 0 begin print dbo.QBM_FCVDatetimeToString(GETUTCDATE()) + ' ferdsch ' 
17end return end 
18

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.223

has TRY/CATCH error handling

Summary: calls QBM_P40B0C8AE71E45BA9C883A96_, QBM_PSessionErrorAdd; writes INSERT QBMDBQueuePond, INSERT into, UPDATE QBMDBQueuePond; reads/joins QBMDBQueuePond, QBMDBQueueTaskMetric

Declared parameters

ParameterTypeDirection
@PondGroupvarchar(38)input

DML targets

INSERT QBMDBQueuePond INSERT into UPDATE QBMDBQueuePond

Config/session

Config: None extracted.

Session: None extracted.

DBQueue/tasks

None extracted.

Temp tables / referenced variables

Temp: None extracted.

Variables: @PondGroup @TaskDefs @ElementCount @ElementIndex @UID_Task @PondGroupNew @AnzahlPondGesamt @DebugSwitch @ROWCOUNT

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.QBM_PDBQueuePondTimeOutSQL expression dependencyOBJECT_OR_COLUMN
dbo.QBM_PDBQueuePondTimeOutsource text referencehas TRY/CATCH error handling