dbo.QBM_PWaitForSeconds
SQL_STORED_PROCEDURE
Created 2025-06-27T17:57:01.840 · modified 2026-04-14T23:14:10.623 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@SecondsToWait | float | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| dbo | QBM_FCVIntToString | OBJECT_OR_COLUMN | |
| dbo | QBM_FCVStringPadLeft | 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_PWaitForSeconds (@SecondsToWait float ) as begin SET XACT_ABORT OFF BEGIN TRY declare @SQLcmd nvarchar(1024) declare 2@Timestring varchar(64) declare @SecondsToWait_intern float declare @hours int declare @Minutes int declare @Seconds int declare @MilliSeconds int 3select @SecondsToWait_intern = case when @SecondsToWait > 7200.0 then 7200.0 when isnull(@SecondsToWait, 0.0) < 0.005 then 0.005 else @SecondsToWait end 4 select @hours = convert(int, @SecondsToWait_intern) / 3600 select @SecondsToWait_intern -= convert(float, @hours) * 3600.0 select @Minutes = convert(int 5, @SecondsToWait_intern ) / 60 select @SecondsToWait_intern -= convert(float, @Minutes * 60) select @Seconds = convert(int, @SecondsToWait_intern ) select 6 @SecondsToWait_intern -= convert(float, @Seconds) select @MilliSeconds = round(@SecondsToWait_intern*1000.0, 0) select @Timestring = dbo.QBM_FCVStringPadLeft 7( dbo.QBM_FCVIntToString(@hours), 2, '0') + ':' + dbo.QBM_FCVStringPadLeft( dbo.QBM_FCVIntToString(@Minutes), 2, '0') + ':' + dbo.QBM_FCVStringPadLeft( 8 dbo.QBM_FCVIntToString(@Seconds), 2, '0') + '.' + dbo.QBM_FCVStringPadLeft( dbo.QBM_FCVIntToString(@MilliSeconds), 3, '0') waitfor delay @timestring 9END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default declare @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow() RAISERROR (@Rethrow, 18, 1) WITH 10 NOWAIT END CATCH end 11
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:14:10.623
has TRY/CATCH error handling
Summary: calls QBM_PSessionErrorAdd
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@SecondsToWait | float | input |
DML targets
None extracted.Called routines
Read/join references
None extracted.
SQL dependency metadata
Config/session
Config: None extracted.
Session: None extracted.
DBQueue/tasks
None extracted.Temp tables / referenced variables
Temp: None extracted.
Variables: @SecondsToWait @SQLcmd @Timestring @SecondsToWait_intern @hours @Minutes @Seconds @MilliSeconds @timestring @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_PColumnCustomRemove | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PDBQCS_CurrentMoveSlot | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PDBQCS_CurrentRestore | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PDBQCS_SlotRunner | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PDBQueueReplGenProcID | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PDialogDBQueueDelete | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PExecuteSQLWithRetry_LLP | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PJobQueueDelete | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PJobQueueInit | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PMigrationNotReadyForComp | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PQBMDBQueueCurrentDelete | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PQBMDBQueuePondDelete | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PScheduleCheck | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PSlotResetOnMissingItem_L | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PWorkDBQueueDelete | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PWorkHistoryDelete | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PWorkJobQueueDelete | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_P98F5E10C6A9349A1EBFB2C2_ | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_PPersonDelete_GDPR | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_PSlotResetOnInvalidRoot_L | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_ZITShopHelperFill | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_PColumnCustomRemove | source text reference | has TRY/CATCH error handling |
| dbo.QBM_PDBQCS_CurrentMoveSlot | source text reference | has TRY/CATCH error handling |
| dbo.QBM_PDBQCS_CurrentRestore | source text reference | inserts DBQueue tasks, uses session context values, has TRY/CATCH error handling |
| dbo.QBM_PDBQCS_SlotRunner | source text reference | inserts DBQueue tasks, uses session context values, has TRY/CATCH error handling |
| dbo.QBM_PDBQueueReplGenProcID | source text reference | has TRY/CATCH error handling |
| dbo.QBM_PDialogDBQueueDelete | source text reference | has TRY/CATCH error handling |
| dbo.QBM_PExecuteSQLWithRetry_LLP | source text reference | has TRY/CATCH error handling |
| dbo.QBM_PJobQueueDelete | source text reference | has TRY/CATCH error handling |
| dbo.QBM_PJobQueueInit | source text reference | has TRY/CATCH error handling |
| dbo.QBM_PMigrationNotReadyForComp | source text reference | inserts DBQueue tasks, uses session context values, has TRY/CATCH error handling |
| dbo.QBM_PQBMDBQueueCurrentDelete | source text reference | has TRY/CATCH error handling |
| dbo.QBM_PQBMDBQueuePondDelete | source text reference | has TRY/CATCH error handling |
| dbo.QBM_PScheduleCheck | source text reference | inserts DBQueue tasks, uses session context values, has TRY/CATCH error handling |
| dbo.QBM_PSlotResetOnMissingItem_L | source text reference | has TRY/CATCH error handling |
| dbo.QBM_PWorkDBQueueDelete | source text reference | uses session context values, has TRY/CATCH error handling |
| dbo.QBM_PWorkHistoryDelete | source text reference | uses session context values, has TRY/CATCH error handling |
| dbo.QBM_PWorkJobQueueDelete | source text reference | uses session context values, has TRY/CATCH error handling |
| dbo.QER_P98F5E10C6A9349A1EBFB2C2_ | source text reference | has TRY/CATCH error handling |
| dbo.QER_PPersonDelete_GDPR | source text reference | creates object-layer jobs via QBM_PJobCreate*, calls object-layer method via HOCallMethod, uses session context values, has TRY/CATCH error handling |
| dbo.QER_PSlotResetOnInvalidRoot_L | source text reference | has TRY/CATCH error handling |
| dbo.QER_ZITShopHelperFill | source text reference | has TRY/CATCH error handling |