dbo.ATT_ZAttestationCheck
SQL_STORED_PROCEDURE
Created 2025-06-27T18:01:11.757 · modified 2026-04-14T23:20:42.787 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@Slotnumber | int | no |
@Dummy1 | varchar | no |
@Dummy2 | varchar | no |
@GenProcID | varchar | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| AttestationCase | OBJECT_OR_COLUMN | ||
| AttestationHelper | OBJECT_OR_COLUMN | ||
| QBM_PDBQueueInsert_Bulk | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_YDBQueueRaw | TYPE | ||
| QERWorkingMethod | 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 ATT_ZAttestationCheck ( @Slotnumber int , @Dummy1 varchar(38) , @Dummy2 varchar(38) , @GenProcID varchar(38) ) AS begin BEGIN 2 TRY declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, @GenProcID from (select 3 distinct pwo.UID_AttestationCase as uid from AttestationCase pwo join AttestationHelper h on pwo.uid_AttestationCase = h.uid_AttestationCase where (h.NextReminder 4 < getutcdate() or h.NextAutomaticDecision < getutcdate() ) and pwo.IsUnderConstruction = 0 ) as x exec QBM_PDBQueueInsert_Bulk 'ATT-K-AttestationCheckValid' 5, @DBQueueElements_01 declare @DBQueueElements_02 QBM_YDBQueueRaw insert into @DBQueueElements_02 (object, subobject, genprocid) select x.uid, null, @GenProcID 6 from (select distinct pwo.UID_AttestationCase as uid from AttestationCase pwo join AttestationHelper h on pwo.uid_AttestationCase = h.uid_AttestationCase 7 join QERWorkingMethod wm on pwo.UID_QERWorkingMethod= wm.UID_QERWorkingMethod where dateadd(dd, wm.DaysToAbort, pwo.Xdateinserted) < getutcdate() and 8isnull(wm.DaysToAbort, 0) > 0 and pwo.IsUnderConstruction = 0 ) as x exec QBM_PDBQueueInsert_Bulk 'ATT-K-AttestationCheckValid', @DBQueueElements_02 END 9 TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 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:42.787
inserts DBQueue tasks has TRY/CATCH error handling
Summary: calls QBM_PDBQueueInsert_Bulk, QBM_PSessionErrorAdd; writes INSERT into; reads/joins AttestationCase, AttestationHelper, QERWorkingMethod
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@Slotnumber | int | input |
@Dummy1 | varchar(38) | input |
@Dummy2 | 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
ATT-K-AttestationCheckValidTemp tables / referenced variables
Temp: None extracted.
Variables: @Slotnumber @Dummy1 @Dummy2 @GenProcID @DBQueueElements_01 @DBQueueElements_02
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.