dbo.RMS_TIESet
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 -> RMS-K-ESetCollection / RMS_ZESetCollection at line 3
- References QBM_PDBQueueInsert_Bulk
- Trigger parent table: ESet
Typed Edges
- queues DBQueue task RMS_ZESetCollection at line 3 Bulk DBQueue insert -> RMS-K-ESetCollection / RMS_ZESetCollection at line 3
- trigger on table ESet Trigger parent table: ESet
- 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
Complete Source
1CREATE trigger RMS_TIESet2 ON ESet FOR3INSERT NOT FOR Replication4AS5BEGIN6 BEGIN TRY7 IF EXISTS(8 SELECT TOP 1 19 FROM inserted)10 GOTO start11 RETURN start:12 DECLARE @GenProcID varchar(38)13 SELECT @GenProcID = dbo.QBM_FGISessionContext('')14 DECLARE @DBQueueElements_01 QBM_YDBQueueRaw15 INSERT INTO @DBQueueElements_01(object,16 subobject,17 genprocid)18 SELECT19 x.uid,20 NULL,21 @GenProcID22 FROM(23 SELECT24 DISTINCT i.UID_ESet AS uid25 FROM inserted i) AS x26 EXEC QBM_PDBQueueInsert_Bulk 'RMS-K-ESetCollection',27 @DBQueueElements_0128 END TRY29 BEGIN CATCH30 EXEC QBM_PSessionErrorAdd DEFAULT31 RAISERROR('',32 18,33 1)34 WITH NOWAIT35 END CATCH36 ende:37 RETURN38END
Open raw exported source
1create trigger RMS_TIESet on ESet for Insert not for Replication as begin BEGIN TRY if exists (select top 1 1 from inserted) goto start return2 start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('') declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_013 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select distinct i.UID_ESet as uid from inserted i ) as x exec QBM_PDBQueueInsert_Bulk4 'RMS-K-ESetCollection', @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return5 end 6