dbo.CPL_ZSubRuleFillPersonS
SQL_STORED_PROCEDURE
Created 2025-06-27T18:01:17.960 · modified 2026-04-14T23:20:45.727 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@SlotNumber | int | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| CPL_PSubRuleFillPerson_i | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_YCursorBuffer | TYPE | ||
| QBM_YDBQueueCurrent | TYPE | ||
| QBM_YSingleGUID | TYPE | ||
| QBMDBQueueCurrent | OBJECT_OR_COLUMN |
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
1create procedure CPL_ZSubRuleFillPersonS (@SlotNumber int ) AS begin declare @DBQueueCurrent QBM_YDBQueueCurrent declare @ElementBuffer QBM_YCursorBuffer 2 declare @ElementCount int declare @ElementIndex int declare @UID_ComplianceRule varchar(38) declare @uid_person varchar(38) declare @GenProcID varchar 3(38) declare @Persons QBM_YSingleGUID SET XACT_ABORT OFF BEGIN TRY insert into @DBQueueCurrent(UID_DialogDBQueue, UID_Parameter, UID_SubParameter, GenProcID 4) select UID_DialogDBQueue, UID_Parameter, UID_SubParameter, GenProcID from QBMDBQueueCurrent cu with (readpast) where cu.SlotNumber = @SlotNumber insert 5 into @ElementBuffer (UID1, UID3) select p.UID_Parameter, max(p.GenProcID) from @DBQueueCurrent p group by p.UID_Parameter select @ElementCount = @@ROWCOUNT 6 select @ElementIndex = 1 while @ElementIndex <= @ElementCount begin select top 1 @UID_ComplianceRule = bu.UID1 , @GenProcID = bu.UID3 from @ElementBuffer 7 bu where bu.ElementIndex = @ElementIndex delete @Persons insert into @Persons(UID_SingleGuid) select distinct cu.UID_SubParameter from @DBQueueCurrent 8 cu where cu.UID_Parameter = @UID_ComplianceRule exec CPL_PSubRuleFillPerson_i @UID_ComplianceRule, @persons, @GenProcID select @ElementIndex += 1 end 9 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH endLabel: return end 10
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:45.727
has TRY/CATCH error handling
Summary: calls CPL_PSubRuleFillPerson_i, QBM_PSessionErrorAdd; writes INSERT into; reads/joins QBMDBQueueCurrent
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@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: None extracted.
Variables: @SlotNumber @DBQueueCurrent @ElementBuffer @ElementCount @ElementIndex @UID_ComplianceRule @uid_person @GenProcID @Persons @ROWCOUNT @persons
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.