dbo.QBM_PGUIDReplaceCustomizerFill
SQL_STORED_PROCEDURE
Created 2025-06-27T17:57:24.367 · modified 2026-04-14T23:20:27.280 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
| No parameters. | ||
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| DialogCustomizer | OBJECT_OR_COLUMN | ||
| DialogTable | OBJECT_OR_COLUMN | ||
| DialogTableHasCustomizer | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBMClrType | OBJECT_OR_COLUMN | ||
| dbo | QBM_FCVElementToObjectKey2 | 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_PGUIDReplaceCustomizerFill as begin declare @uid_customizer varchar(38) declare @XUser nvarchar(64) = object_name(@@procid 2) declare @Xdate datetime = getutcdate() SET XACT_ABORT OFF BEGIN TRY select top 1 @uid_customizer = m.UID_Customizer from DialogCustomizer m join QBMClrType 3 ct on m.UID_QBMClrType = ct.UID_QBMClrType where ct.FullTypeName = 'VI.Common.Customizer.ModuleGuids' insert into DialogTableHasCustomizer(UID_DialogTable 4, UID_Customizer, XObjectKey , XDateInserted, XDateUpdated, XUserInserted,XUserUpdated) select t.UID_DialogTable, @uid_customizer, dbo.QBM_FCVElementToObjectKey2 5 ('DialogTableHasCustomizer', 'UID_DialogTable', t.UID_DialogTable, 'UID_Customizer', @uid_customizer) , @Xdate, @Xdate, @XUser, @XUser from DialogTable 6 t with (readpast) where t.IsModuleGUIDAllowed = 1 and not exists (Select top 1 1 from DialogTableHasCustomizer h where h.UID_DialogTable = t.UID_DialogTable 7 and h.UID_Customizer = @uid_customizer ) delete DialogTableHasCustomizer from DialogTableHasCustomizer h left outer join DialogTable t with (readpast 8) on h.UID_DialogTable = t.UID_DialogTable and t.IsModuleGUIDAllowed = 1 where h.UID_Customizer = @uid_customizer and t.UID_DialogTable is null END TRY 9 BEGIN CATCH exec QBM_PSessionErrorAdd default declare @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow() RAISERROR (@Rethrow, 18, 1) WITH NOWAIT 10 END CATCH endLabel: return 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:20:27.280
has TRY/CATCH error handling
Summary: calls QBM_PSessionErrorAdd; writes INSERT DialogTableHasCustomizer, DELETE DialogTableHasCustomizer; reads/joins DialogCustomizer, QBMClrType, DialogTable, DialogTableHasCustomizer
Declared parameters
No declared parameters in sys.parameters for this object, or metadata was not available.
DML targets
INSERT DialogTableHasCustomizer DELETE DialogTableHasCustomizerCalled 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: @uid_customizer @XUser @procid @Xdate @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_TDDialogTable | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_TIDialogTable | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_TUDialogTable | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QBM_TDDialogTable | source text reference | inserts DBQueue tasks, uses session context values, has TRY/CATCH error handling |
| dbo.QBM_TIDialogTable | source text reference | inserts DBQueue tasks, uses session context values, has TRY/CATCH error handling |
| dbo.QBM_TUDialogTable | source text reference | inserts DBQueue tasks, uses session context values, has TRY/CATCH error handling |