dbo.QBM_TUDialogUser
SQL_TRIGGER parent DialogUser
Created 2025-06-27T18:01:00.977 · modified 2026-04-14T23:23:08.183 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
| No parameters. | ||
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| deleted | OBJECT_OR_COLUMN | ||
| dialogUser | OBJECT_OR_COLUMN | ||
| DialogUserInGroup | OBJECT_OR_COLUMN | ||
| inserted | OBJECT_OR_COLUMN | ||
| QBM_PDBQueueInsert_Bulk | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_YDBQueueRaw | TYPE | ||
| dbo | QBM_FGISessionContext | OBJECT_OR_COLUMN |
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
1 create trigger QBM_TUDialogUser on DialogUser for Update not for Replication as begin declare @ProcName nvarchar(64) = object_name(@@procid 2) declare @DebugSwitch int = 0 BEGIN TRY if exists (select top 1 1 from inserted) goto start if exists (select top 1 1 from deleted) goto start return 3start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('') if @Debugswitch > 0 begin print 'entry : ' + @ProcName end if update 4(UserName) begin if exists (select top 1 1 from dialogUser u join deleted d on u.UID_DialogUser = d.UID_DialogUser where isnull(u.UserName, N'') <> isnull 5(d.Username, N'') and d.Username > ' ' ) begin raiserror( '#LDS#Cannot rename property Username.|', 18, 2) with nowait end end if update(IsAdmin) begin 6 delete DialogUserInGroup from DialogUserInGroup uig join deleted d on d.UID_DialogUser = uig.UID_DialogUser join DialogUser u on d.UID_DialogUser = u.UID_DialogUser 7 and d.IsAdmin = 1 and u.IsAdmin = 0 end if update(IsServiceAccount) or update(IsAdmin) begin declare @DBQueueElements_01 QBM_YDBQueueRaw insert into 8 @DBQueueElements_01(Object, SubObject, GenProcID) select x.uid, null, @GenProcID from ( select distinct u.UID_DialogUser as uid from deleted d join DialogUser 9 u on d.UID_DialogUser = u.UID_DialogUser where d.IsAdmin <> u.IsAdmin or d.IsServiceAccount <> u.IsServiceAccount ) as x exec QBM_PDBQueueInsert_Bulk 10'QBM-K-DialogUserInGroup', @DBQueueElements_01 end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH if 11 @Debugswitch > 0 begin print 'exit : ' + @ProcName end end 12
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.183
inserts DBQueue tasks uses session context values has TRY/CATCH error handling
Summary: calls QBM_PDBQueueInsert_Bulk, QBM_PSessionErrorAdd; writes INSERT into, UPDATE not, DELETE DialogUserInGroup; reads/joins inserted, deleted, dialogUser, DialogUserInGroup, DialogUser
Declared parameters
No declared parameters in sys.parameters for this object, or metadata was not available.
DML targets
INSERT into UPDATE not DELETE DialogUserInGroupCalled routines
Read/join references
SQL dependency metadata
Config/session
Config: None extracted.
Session: None extracted.
DBQueue/tasks
QBM-K-DialogUserInGroupTemp tables / referenced variables
Temp: #LDS #Cannot
Variables: @ProcName @procid @DebugSwitch @GenProcID @Debugswitch @DBQueueElements_01
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.