dbo.QBM_TIQBMGuidReplace

SQL_TRIGGER parent QBMGuidReplace

Created 2025-06-27T18:01:01.317 · modified 2026-04-14T23:23:08.580 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
No parameters.

Referenced objects

SchemaObjectColumn/minorClass
DialogDatabaseOBJECT_OR_COLUMN
DialogDBQueueOBJECT_OR_COLUMN
insertedOBJECT_OR_COLUMN
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QBMDBQueueCurrentOBJECT_OR_COLUMN
dboQBM_FGISessionContextOBJECT_OR_COLUMN

Source excerpt

First extracted SQL definition lines from the exported source. Use the full source page for complete context.

Open full formatted source

1  create   trigger QBM_TIQBMGuidReplace on QBMGuidReplace  for Insert not for Replication as begin  BEGIN TRY if exists (select top 1 1 from inserted
2) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('') if exists (select top 1 1 from QBMDBQueueCurrent
3 cu with (nolock) where cu.SlotNumber <> 0 and cu.UID_Task in ('QBM-K-TableReload' , 'QBM-K-TableReplace' ) ) or exists (select top 1 1 from DialogDBQueue
4 q with(nolock) where q.UID_Task in ('QBM-K-TableReload' , 'QBM-K-TableReplace', 'QBM-K-GUIDReplaceReady' )  and q.Generation >= 0 ) begin raiserror('#LDS#Making a replacement is impossible because of a running replacement job. Try again later.|'
5, 18, 2) with nowait end if exists (select top 1 1 from DialogDatabase d with (readpast) where d.IsMainDatabase = 1 and d.ProductionLevel = 2  ) begin 
6raiserror('#LDS#Making a replacement is not permitted in production environments.|', 18, 2) with nowait end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd
7 default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH end 
8

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:23:08.580

uses session context values has TRY/CATCH error handling

Summary: calls QBM_PSessionErrorAdd; writes INSERT not; reads/joins inserted, QBMDBQueueCurrent, DialogDBQueue, DialogDatabase

Declared parameters

No declared parameters in sys.parameters for this object, or metadata was not available.

DML targets

INSERT not

Called routines

Config/session

Config: None extracted.

Session: None extracted.

DBQueue/tasks

QBM-K-TableReload QBM-K-TableReplace QBM-K-GUIDReplaceReady

Temp tables / referenced variables

Temp: #LDS #Making

Variables: @GenProcID

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.