dbo.QBM_ZStateUTCOffset2
SQL_STORED_PROCEDURE
Created 2025-06-27T17:58:58.560 · modified 2026-04-14T23:20:29.233 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@SlotNumber | int | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| DialogCountry | OBJECT_OR_COLUMN | ||
| DialogState | OBJECT_OR_COLUMN | ||
| DialogStateHasTimeZone | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBMDBQueueCurrent | 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_ZStateUTCOffset2 (@SlotNumber int) as begin declare @GenProcID varchar(38) declare @XUser nvarchar(64) = object_name(@@procid 2) declare @Xdate datetime = getutcdate() BEGIN TRY update DialogState set AVGUTCOffSet = isnull(c.AVGUTCOffset, 0) , IsDayLightSaving = isnull(c.IsDayLightSaving 3, 0) , XDateUpdated = @Xdate , XUserUpdated = @XUser from DialogState s join QBMDBQueueCurrent cu with (readpast) on s.UID_DialogState = cu.UID_Parameter 4 and cu.SlotNumber = @SlotNumber join DialogCountry c on s.UID_DialogCountry = c.UID_DialogCountry left outer join DialogStateHasTimeZone sht on s.UID_DialogState 5 = sht.UID_DialogState where sht.UID_DialogTimeZone is null and ( isnull(s.AVGUTCOffset,0) <> isnull(c.AVGUTCOffset,0) or isnull(s.IsDayLightSaving,0) 6<> isnull(c.IsDayLightSaving,0) ) END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 7
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:29.233
has TRY/CATCH error handling
Summary: calls QBM_PSessionErrorAdd; writes UPDATE DialogState; reads/joins DialogState, QBMDBQueueCurrent, DialogCountry, DialogStateHasTimeZone
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@SlotNumber | int | input |
DML targets
UPDATE DialogStateCalled 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: @SlotNumber @GenProcID @XUser @procid @Xdate
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.