dbo.QBM_FGIMaintenanceRunning_M
SQL_SCALAR_FUNCTION
Created 2025-06-27T17:57:28.760 · modified 2026-04-14T23:20:24.710 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
| varchar | yes |
@IsSystemUser | bit | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| DialogDatabase | OBJECT_OR_COLUMN | ||
| dbo | QBM_FGIConstraintsDisabled | OBJECT_OR_COLUMN | |
| dbo | QBM_FGISingleUserRunning | OBJECT_OR_COLUMN | |
| dbo | QBM_FGITriggersDisabled | OBJECT_OR_COLUMN |
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
1 create function dbo.QBM_FGIMaintenanceRunning_M(@IsSystemUser bit) returns varchar(32) as begin return ( case when dbo.QBM_FGITriggersDisabled 2() = 1 then 'Triggers disabled' when dbo.QBM_FGIConstraintsDisabled() = 1 then 'Constraints disabled' when dbo.QBM_FGISingleUserRunning() = 1 then 'Single user' 3 when exists (select top 1 1 from DialogDatabase d with (readpast) where d.IsMainDatabase = 1 and (@IsSystemUser = 1 and d.UpdatePhase in (3, 4) or @IsSystemUser 4 = 0 and d.UpdatePhase in (2,3,4) ) ) then 'System update running' else '' end ) end 5
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:24.710
None extracted.
Summary: writes UPDATE running; reads/joins DialogDatabase
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
| varchar(32) | OUTPUT |
@IsSystemUser | bit | input |
DML targets
UPDATE runningCalled routines
None extracted.
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: @IsSystemUser
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_PJobQueueDelete_Bulk | SQL expression dependency | dbo · OBJECT_OR_COLUMN |
| dbo.QBM_PWorkJobQueueDelete | SQL expression dependency | dbo · OBJECT_OR_COLUMN |