dbo.POL_ZQERPolicyMakeProc
SQL_STORED_PROCEDURE
Created 2025-06-27T18:01:19.230 · modified 2026-04-14T23:20:46.097 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@SlotNumber | int | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| POL_PQERPolicyMakeProc | OBJECT_OR_COLUMN | ||
| QBM_PProcedureDrop | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_YCursorBuffer | TYPE | ||
| QBMDBQueueCurrent | OBJECT_OR_COLUMN | ||
| QERPolicy | OBJECT_OR_COLUMN | ||
| dbo | QBM_FGICodeName | OBJECT_OR_COLUMN |
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
1 create procedure POL_ZQERPolicyMakeProc (@SlotNumber int) as begin declare @uid_QERPolicy varchar(38) declare @SQLcmd nvarchar(max) declare 2 @Procname varchar(30) declare @ElementBuffer QBM_YCursorBuffer declare @ElementCount int declare @ElementIndex int SET XACT_ABORT OFF BEGIN TRY insert 3 into @ElementBuffer (UID1) select uid_parameter from QBMDBQueueCurrent p with (readpast) where p.SlotNumber = @SlotNumber select @ElementCount = @@ROWCOUNT 4 select @ElementIndex = 1 while @ElementIndex <= @ElementCount begin select top 1 @uid_QERPolicy = bu.UID1 from @ElementBuffer bu where bu.ElementIndex 5 = @ElementIndex select @procname = dbo.QBM_FGICodeName('PO', @uid_QERPolicy) if exists (select top 1 1 from QERPolicy where uid_QERPolicy = @uid_QERPolicy 6 and isnull(isInactive,0) = 0 and isnull(isWorkingCopy,0) = 0 and isnull(isNoWhereClause,0) = 0 ) begin exec POL_PQERPolicyMakeProc @uid_QERPolicy, @procname 7 end else begin exec QBM_PProcedureDrop @procname end select @ElementIndex += 1 end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('' 8, 18, 1) WITH NOWAIT END CATCH end 9
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:46.097
has TRY/CATCH error handling
Summary: calls POL_PQERPolicyMakeProc, QBM_PProcedureDrop, QBM_PSessionErrorAdd; writes INSERT into; reads/joins QBMDBQueueCurrent, QERPolicy
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 @uid_QERPolicy @SQLcmd @Procname @ElementBuffer @ElementCount @ElementIndex @ROWCOUNT @procname
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.