dbo.QER_ZDynGroupSinglePerson

SQL_STORED_PROCEDURE

Created 2025-06-27T18:01:07.040 · modified 2026-04-14T23:20:39.687 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
@SlotNumberintno

Referenced objects

SchemaObjectColumn/minorClass
DialogDBQueueOBJECT_OR_COLUMN
DialogTableOBJECT_OR_COLUMN
DynamicGroupOBJECT_OR_COLUMN
QBM_PDBQueueInsert_BulkOBJECT_OR_COLUMN
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QBM_YDBQueueCurrentTYPE
QBM_YDBQueueRawTYPE
QBMDBQueueCurrentOBJECT_OR_COLUMN
dboQBM_FGIJobCreatedExistsOBJECT_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 QER_ZDynGroupSinglePerson (@SlotNumber int)  as begin declare @GenProcID varchar(38) declare @CountPerson_All float declare
2 @CountPerson_ForDyna float declare @LimitForFullGroup float = 0.001 declare @LimitAbsolute float = 100  declare @DBQueueCurrent QBM_YDBQueueCurrent BEGIN
3 TRY insert into @DBQueueCurrent(UID_DialogDBQueue, UID_Parameter, UID_SubParameter, GenProcID) select UID_DialogDBQueue, UID_Parameter, UID_SubParameter
4, GenProcID from QBMDBQueueCurrent cu with (readpast) where cu.SlotNumber = @SlotNumber if @@rowcount = 0 begin goto EndLabel end select @CountPerson_All
5 = convert(float, dbo.QBM_FGITableCountAll('Person')) if @CountPerson_All = 0.0 begin select @CountPerson_All = 1.0  end select @CountPerson_ForDyna = 
6COUNT(*) from QBMDBQueueCurrent o with (readpast) where o.UID_Task = 'QER-K-DynamicGroupSinglePerson' and o.SlotNumber > 0 select @CountPerson_ForDyna 
7+= COUNT(*) from @DBQueueCurrent o if @CountPerson_ForDyna / @CountPerson_All > @LimitForFullGroup and @CountPerson_ForDyna > @LimitAbsolute begin declare
8 @DBQueueElements_02 QBM_YDBQueueRaw select top 1 @GenProcID = cu.GenProcID from @DBQueueCurrent cu insert into @DBQueueElements_02(Object, SubObject, 
9GenProcID) select d.UID_DynamicGroup, null, @GenProcID from DynamicGroup d where d.UID_DialogTableObjectClass = 'QER-T-Person' exec QBM_PDBQueueInsert_Bulk
10 'QER-K-DynamicGroupTest', @DBQueueElements_02 end else begin  declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_01(Object, SubObject
11, GenProcID) select cu.UID_Parameter, dg.uid_dynamicGroup , cu.GenProcID from @DBQueueCurrent cu cross join DynamicGroup dg join DialogTable t with (readpast
12) on dg.UID_DialogTableObjectClass = t.UID_DialogTable where t.TableName = 'Person'   and dbo.QBM_FGIJobCreatedExists(dg.XObjectKey) = 0   and not exists
13 (Select top 1 1 from DialogDBQueue q with (nolock) where q.UID_Task = 'QER-K-DynamicGroupTest' and q.Object = dg.UID_DynamicGroup  and q.Generation >=
14 0 ) exec QBM_PDBQueueInsert_Bulk 'QER-K-DynamicGroupSingleBasic', @DBQueueElements_01 end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR
15 ('', 18, 1) WITH NOWAIT END CATCH endLabel: return end 
16

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

inserts DBQueue tasks has TRY/CATCH error handling

Summary: calls QBM_PDBQueueInsert_Bulk, QBM_PSessionErrorAdd; writes INSERT into; reads/joins QBMDBQueueCurrent, DynamicGroup, DialogTable, DialogDBQueue

Declared parameters

ParameterTypeDirection
@SlotNumberintinput

DML targets

INSERT into

Config/session

Config: None extracted.

Session: None extracted.

DBQueue/tasks

QER-K-DynamicGroupSinglePerson QER-K-DynamicGroupTest QER-K-DynamicGroupSingleBasic

Temp tables / referenced variables

Temp: None extracted.

Variables: @SlotNumber @GenProcID @CountPerson_All @CountPerson_ForDyna @LimitForFullGroup @LimitAbsolute @DBQueueCurrent @rowcount @DBQueueElements_02 @DBQueueElements_01

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.