dbo.QBM_PSingleUserBreak
SQL_STORED_PROCEDURE
Created 2025-06-27T17:57:02.020 · modified 2026-04-14T23:20:24.353 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@RequestingProcessID | int | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| DialogDatabase | 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_PSingleUserBreak (@RequestingProcessID int = 0 ) as begin declare @Erg int = 1 declare @SingleUserProcess int declare 2@SingleUserStart datetime declare @XUser nvarchar(64) = object_name(@@procid) declare @Xdate datetime = getutcdate() SET XACT_ABORT OFF BEGIN TRY if not 3 exists (select top 1 1 from sys.tables t where t.name = 'DialogDatabase' ) begin goto endLabel end select top 1 @SingleUserProcess = SingleUserProcess 4 , @SingleUserStart = SingleUserStart from DialogDatabase where IsMainDatabase = 1 if @SingleUserProcess is null begin select @SingleUserProcess = 0 end 5 if @RequestingProcessID = 0 begin select @RequestingProcessID = @@SPID end if @SingleUserProcess <> @RequestingProcessID begin update DialogDatabase 6set SingleUserProcess = @RequestingProcessID , SingleUserStart = GETUTCDATE() , XDateUpdated = @Xdate , XUserUpdated = @XUser where IsMainDatabase = 1 7end else begin select @erg = 0 end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default declare @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow 8() RAISERROR (@Rethrow, 18, 1) WITH NOWAIT END CATCH endLabel: return (@erg) end 9
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.353
has TRY/CATCH error handling
Summary: calls QBM_PSessionErrorAdd; writes UPDATE DialogDatabase; reads/joins sys, DialogDatabase
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@RequestingProcessID | int | input |
DML targets
UPDATE DialogDatabaseCalled routines
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: @RequestingProcessID @Erg @SingleUserProcess @SingleUserStart @XUser @procid @Xdate @SPID @erg @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.
No reverse dependencies extracted.