dbo.QBM_PDialogProcessGetShrinkDef
SQL_STORED_PROCEDURE
Created 2025-06-27T17:57:29.220 · modified 2026-04-14T23:20:25.907 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@AreaToCheck | nvarchar | no |
@ReadyForDeleteOrExport | int | yes |
@LimitDate | datetime | yes |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| dbo | QBM_FCVStringToInt | OBJECT_OR_COLUMN | |
| dbo | QBM_FGIConfigparmValue | 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_PDialogProcessGetShrinkDef (@AreaToCheck nvarchar(256) , @ReadyForDeleteOrExport int output , @LimitDate datetime output 2 ) as begin declare @AnzahlTage int declare @ExportPolicy int SET XACT_ABORT OFF BEGIN TRY select @ReadyForDeleteOrExport = 0 select @LimitDate = '2200-01-01' 3 select @ExportPolicy = case dbo.QBM_FGIConfigparmValue('Common\ProcessState\ExportPolicy') when '' then 0 when 'NONE' then 1 when 'HDB' then 2 when 'FILE' 4 then 2 else 0 end if dbo.QBM_FCVStringToInt(dbo.QBM_FGIConfigparmValue('Common\ProcessState\'+ @AreaToCheck + '\IsToExport'), 0) = 1 begin select @ReadyForDeleteOrExport 5 = @ExportPolicy end else begin if @ExportPolicy > 0 begin select @ReadyForDeleteOrExport = 1 end else begin select @ReadyForDeleteOrExport = 0 end end 6 if @ReadyForDeleteOrExport = 0 begin goto ende end select top 1 @AnzahlTage = dbo.QBM_FCVStringToInt(dbo.QBM_FGIConfigparmValue( 'Common\ProcessState\' 7+ @AreaToCheck + '\LifeTime'), 0) if @AnzahlTage < 1 begin select @AnzahlTage = 1 end select @AnzahlTage = @AnzahlTage * (-1) select @LimitDate = dateadd 8(dd, @AnzahlTage, GetUTCDate()) ende: END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default declare @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow 9() RAISERROR (@Rethrow, 18, 1) WITH NOWAIT END CATCH 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:25.907
has TRY/CATCH error handling
Summary: calls QBM_PSessionErrorAdd; uses config Common\ProcessState\ExportPolicy, Common\ProcessState\
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@AreaToCheck | nvarchar(256) | input |
@ReadyForDeleteOrExport | int | OUTPUT |
@LimitDate | datetime | OUTPUT |
DML targets
None extracted.Called routines
Read/join references
None extracted.
SQL dependency metadata
Config/session
Config: Common\ProcessState\ExportPolicy Common\ProcessState\
Session: None extracted.
DBQueue/tasks
None extracted.Temp tables / referenced variables
Temp: None extracted.
Variables: @AreaToCheck @ReadyForDeleteOrExport @LimitDate @AnzahlTage @ExportPolicy @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_PJobHistoryShrink | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PProgressViewShrink | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PWatchShrink | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PJobHistoryShrink | source text reference | has TRY/CATCH error handling |
| dbo.QBM_PProgressViewShrink | source text reference | has TRY/CATCH error handling |
| dbo.QBM_PWatchShrink | source text reference | has TRY/CATCH error handling |