dbo.QBM_PProcessShrink
SQL_STORED_PROCEDURE
Created 2025-06-27T17:57:29.320 · modified 2026-04-14T23:20:25.997 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@KeyPattern | varchar | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| dialogprocess | OBJECT_OR_COLUMN | ||
| DialogProcessSubstitute | OBJECT_OR_COLUMN | ||
| QBM_PDialogProcessShrink_3 | OBJECT_OR_COLUMN | ||
| QBM_PDialogProcessShrink_mark | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| dbo | QBM_FGISessionErrorRethrow | 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 QBM_PProcessShrink (@KeyPattern varchar(25) = '%' ) as begin declare @CountItems int SET XACT_ABORT OFF BEGIN TRY set nocount 2 on exec QBM_PDialogProcessShrink_3 @CountItems output, @KeyPattern exec QBM_PDialogProcessShrink_mark @KeyPattern update DialogProcessSubstitute 3 set ReadyForDeleteOrExport = 1 from DialogProcessSubstitute s where s.GenProcIDNew in ( select GenProcID from dialogprocess p where p.ReadyForDeleteOrExport 4 = 1 and p.GenProcID like @KeyPattern ) and s.ReadyForDeleteOrExport <> 1 update DialogProcessSubstitute set ReadyForDeleteOrExport = 1 from DialogProcessSubstitute 5 s where s.GenProcIDOrigin in ( select GenProcID from dialogprocess p where p.ReadyForDeleteOrExport = 1 and p.GenProcID like @KeyPattern ) and s.ReadyForDeleteOrExport 6 <> 1 exec QBM_PDialogProcessShrink_3 @CountItems output, @KeyPattern END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default declare @Rethrow varchar(1000 7) = dbo.QBM_FGISessionErrorRethrow() RAISERROR (@Rethrow, 18, 1) WITH NOWAIT END CATCH ende: return end 8
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:25.997
has TRY/CATCH error handling
Summary: calls QBM_PDialogProcessShrink_3, QBM_PDialogProcessShrink_mark, QBM_PSessionErrorAdd; writes UPDATE DialogProcessSubstitute; reads/joins DialogProcessSubstitute, dialogprocess
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@KeyPattern | varchar(25) | input |
DML targets
UPDATE DialogProcessSubstituteRead/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: @KeyPattern @CountItems @Rethrow
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 object | Relation | Evidence |
|---|---|---|
| dbo.QBM_ZProcessShrink_Pat | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_ZProcessShrink_Pat | source text reference | uses session context values, has TRY/CATCH error handling |