dbo.QBM_TIDialogDBQueue
Database TriggerSQL_TRIGGERSandbox DB
Interpretation
- Database trigger. Treat parent table and enqueue/object-layer calls as the main relation points.
- DBQueue relation detected. Follow the task procedure and referenced-by list for async processing.
Relations
- Bulk DBQueue insert -> ) begin select @errmsg = at line 4
- References QBM_PDBQueueInsert_Bulk
- Trigger parent table: DialogDBQueue
Typed Edges
- queues DBQueue task ) begin select @errmsg = at line 4 Bulk DBQueue insert -> ) begin select @errmsg = at line 4
- trigger on table DialogDBQueue Trigger parent table: DialogDBQueue
- references source dbo.QBM_FGISessionContext source text reference
- references source dbo.QBM_PDBQueueInsert_Bulk source text reference
- references source dbo.QBM_PSessionErrorAdd source text reference
References
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger QBM_TIDialogDBQueue2 ON DialogDBQueue FOR3INSERT NOT FOR Replication4AS5BEGIN6 DECLARE @GenProcID varchar(38)7 DECLARE @XUser nvarchar(64)8 DECLARE @DebugSwitch int = 09 DECLARE @errmsg nvarchar(1000)10 BEGIN TRY11 IF EXISTS(12 SELECT TOP 1 113 FROM inserted)14 GOTO start15 RETURN start:16 SELECT @GenProcID = dbo.QBM_FGISessionContext('')17 SELECT @XUser = dbo.QBM_FGISessionContext('XUser')18 IF @DebugSwitch > 019 BEGIN20 prinT 'trigger QBM_TIDialogDBQueue ' print 'Procedure ' + object_name(@@procid) print '@GenProcID ' + @GenProcID print '@XUser ' + @XUser21 END22 IF @xuser NOT IN('QBM_PDBQueueInsert_Bulk')23 BEGIN24 SELECT @errmsg = '#LDS#Internal error: No valid insert Operation|'25 RAISERROR(@errmsg,26 18,27 1)28 WITH nowait29 END30 END TRY31 BEGIN CATCH32 EXEC QBM_PSessionErrorAdd DEFAULT33 RAISERROR('',34 18,35 1)36 WITH NOWAIT37 END CATCH38 ende:39 RETURN40END
Open raw exported source
1 create trigger QBM_TIDialogDBQueue on DialogDBQueue for Insert not for Replication as begin declare @GenProcID varchar(38) declare @XUser 2nvarchar(64) declare @DebugSwitch int = 0 declare @errmsg nvarchar(1000) BEGIN TRY if exists (select top 1 1 from inserted) goto start return start: select3 @GenProcID = dbo.QBM_FGISessionContext('') select @XUser = dbo.QBM_FGISessionContext('XUser') if @DebugSwitch > 0 begin prinT 'trigger QBM_TIDialogDBQueue '4 print 'Procedure ' + object_name(@@procid) print '@GenProcID ' + @GenProcID print '@XUser ' + @XUser end if @xuser not in ( 'QBM_PDBQueueInsert_Bulk'5 ) begin select @errmsg = '#LDS#Internal error: No valid insert Operation|' RAISERROR(@errmsg, 18, 1) with nowait end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd6 default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 7