dbo.QER_ZPWODecisionRuleMakeProc
SQL_STORED_PROCEDURE
Created 2025-06-27T18:01:05.857 · modified 2026-04-14T23:20:37.947 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@SlotNumberDummy | int | no |
@UID_PWODecisionRule | varchar | no |
@Dummy | varchar | no |
@GenProcID | varchar | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| PWODecisionRule | OBJECT_OR_COLUMN | ||
| PWODecisionRuleRulerDetect | OBJECT_OR_COLUMN | ||
| QBM_PDBQueueCurrentResetNGen | OBJECT_OR_COLUMN | ||
| QBM_PFunctionDrop | OBJECT_OR_COLUMN | ||
| QBM_PProcedureDrop | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_PSQLCreate | OBJECT_OR_COLUMN | ||
| QBM_YCursorbuffer | TYPE | ||
| QER_P30907EB9FB8232867B_func | OBJECT_OR_COLUMN | ||
| QER_P30907EB9FB8232867B_proc | OBJECT_OR_COLUMN | ||
| dbo | QER_FCVRuleGUIDToFunctionName | 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 QER_ZPWODecisionRuleMakeProc ( @SlotNumberDummy int , @UID_PWODecisionRule varchar(38) , @Dummy varchar(38) , @GenProcID 2 varchar(38) ) as begin declare @UsageArea char(1) declare @FunctionName varchar(30) declare @Komplett nvarchar(max) declare @DebugSwitch int = 0 declare 3 @DebugLevel char(1) = 'W' declare @Statements QBM_YCursorbuffer declare @ResetMessage nvarchar(4000) SET XACT_ABORT OFF BEGIN TRY select @FunctionName 4 = dbo.QER_FCVRuleGUIDToFunctionName(@UID_PWODecisionRule) if @DebugSwitch > 0 begin print 'Codename ' + @FunctionName end select top 1 @UsageArea = r.UsageArea 5 from PWODecisionRule r where r.UID_PWODecisionRule = @UID_PWODecisionRule if @UsageArea is null begin if @DebugSwitch > 0 begin print 'dann gibt es diese Regel nicht (mehr), gedropt haben wir, können wir Schluß machen' 6 end goto DropOnly end insert into @Statements(ContentFull, UID1) select d.SQLQuery, d.UID_PWODecisionRuleRulerDetect from PWODecisionRuleRulerDetect d 7 where d.UID_PWODecisionRule = @UID_PWODecisionRule BEGIN TRY if exists (select top 1 1 from @Statements s where left(ltrim(s.ContentFull),4) = 'exec' 8 ) begin if @DebugSwitch > 0 begin print 'wir bauen das als Prozedur zusammen' end exec QER_P30907EB9FB8232867B_proc @Statements , @UsageArea , @FunctionName 9 , @UID_PWODecisionRule , @Komplett output if @DebugSwitch > 0 begin select @Komplett end exec QBM_PProcedureDrop @FunctionName exec QBM_PSQLCreate 10@FunctionName, 'P', @komplett, @UnComment = 0, @unformat = 0 end else begin if @DebugSwitch > 0 begin print 'das wird wine function' end exec QER_P30907EB9FB8232867B_func 11 @Statements , @UsageArea , @FunctionName , @UID_PWODecisionRule , @Komplett output if @DebugSwitch > 0 begin select @Komplett end exec QBM_PFunctionDrop 12 @FunctionName exec QBM_PSQLCreate @FunctionName, 'F', @komplett, @UnComment = 0, @unformat = 0 end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default 13 select @ResetMessage = ERROR_MESSAGE() if @@TRANCOUNT > 0 begin rollback end exec QBM_PDBQueueCurrentResetNGen @SlotNumberDummy , @ResetMessage , @@PROCID 14 END CATCH END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH endLabel: return DropOnly: exec QBM_PFunctionDrop 15 @FunctionName exec QBM_PProcedureDrop @FunctionName 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:37.947
has TRY/CATCH error handling
Summary: calls QER_P30907EB9FB8232867B_proc, QBM_PProcedureDrop, QBM_PSQLCreate, QER_P30907EB9FB8232867B_func, QBM_PFunctionDrop…; writes INSERT into; reads/joins PWODecisionRule, PWODecisionRuleRulerDetect
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@SlotNumberDummy | int | input |
@UID_PWODecisionRule | varchar(38) | input |
@Dummy | varchar(38) | input |
@GenProcID | varchar(38) | 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: @SlotNumberDummy @UID_PWODecisionRule @Dummy @GenProcID @UsageArea @FunctionName @Komplett @DebugSwitch @DebugLevel @Statements @ResetMessage @komplett @UnComment @unformat @TRANCOUNT @PROCID
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.