dbo.QBM_PGUIDReplaceInsertPair
SQL_STORED_PROCEDURE
Created 2025-06-27T17:57:24.320 · modified 2026-04-14T23:20:27.233 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@GuidOld | varchar | no |
@GuidNew | varchar | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| DialogDatabase | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBMGuidReplace | 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_PGUIDReplaceInsertPair (@GuidOld varchar(38) , @GuidNew varchar(38) ) as begin SET XACT_ABORT OFF BEGIN TRY if @GuidOld 2 > ' ' and @GuidNew > ' ' begin insert into QBMGuidReplace(UID_Database, GuidOld, GuidNew) select x.uid_database, @GuidOld, @GuidNew from (select uid_database 3 from DialogDatabase where IsMainDatabase = 1 ) as x end else begin RAISERROR ('#LDS#Guids to replace must not be null.|', 18, 1) WITH NOWAIT end END 4 TRY BEGIN CATCH exec QBM_PSessionErrorAdd default declare @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow() RAISERROR (@Rethrow, 18, 1) WITH NOWAIT 5 END CATCH ende: return end 6
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:27.233
has TRY/CATCH error handling
Summary: calls QBM_PSessionErrorAdd; writes INSERT QBMGuidReplace; reads/joins DialogDatabase
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@GuidOld | varchar(38) | input |
@GuidNew | varchar(38) | input |
DML targets
INSERT QBMGuidReplaceCalled routines
Read/join references
SQL dependency metadata
Config/session
Config: None extracted.
Session: None extracted.
DBQueue/tasks
None extracted.Temp tables / referenced variables
Temp: #LDS #Guids
Variables: @GuidOld @GuidNew @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.