dbo.QER_TDPWODecisionmethod
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 -> QER-K-ShoppingRack-All / QER_ZITShopCheckStructure at line 5
- References QBM_PDBQueueInsert_Bulk
- Trigger parent table: PWODecisionMethod
Typed Edges
- queues DBQueue task QER_ZITShopCheckStructure at line 5 Bulk DBQueue insert -> QER-K-ShoppingRack-All / QER_ZITShopCheckStructure at line 5
- trigger on table PWODecisionMethod Trigger parent table: PWODecisionMethod
- 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 QER_TDPWODecisionmethod2 ON PWODecisionmethod FOR3DELETE NOT FOR Replication4AS5BEGIN6 BEGIN TRY7 IF EXISTS(8 SELECT TOP 1 19 FROM deleted)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 rtrim(isnull(ohm.uid_org, '')),20 NULL,21 @GenProcID22 FROM PWODecisionMethod23 JOIN deleted24 ON PWODecisionMethod.UID_PWODecisionMethod = deleted.UID_PWODecisionMethod25 JOIN BaseTreeHasPWODecisionMethod ohm26 ON PWODecisionMethod.uid_PWODecisionmethod = ohm.uid_PWODecisionmethod27 EXEC QBM_PDBQueueInsert_Bulk 'QER-K-ShoppingRack-All',28 @DBQueueElements_0129 END TRY30 BEGIN CATCH31 EXEC QBM_PSessionErrorAdd DEFAULT32 RAISERROR('',33 18,34 1)35 WITH NOWAIT36 END CATCH37 ende:38 RETURN39END
Open raw exported source
1create trigger QER_TDPWODecisionmethod on PWODecisionmethod for Delete not for Replication as begin BEGIN TRY if exists (select top 1 1 from 2deleted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('') declare @DBQueueElements_01 QBM_YDBQueueRaw3 insert into @DBQueueElements_01(Object, SubObject, GenProcID) select rtrim(isnull(ohm.uid_org, '')), null, @GenProcID from PWODecisionMethod join deleted4 on PWODecisionMethod.UID_PWODecisionMethod = deleted.UID_PWODecisionMethod join BaseTreeHasPWODecisionMethod ohm on PWODecisionMethod.uid_PWODecisionmethod5 = ohm.uid_PWODecisionmethod exec QBM_PDBQueueInsert_Bulk 'QER-K-ShoppingRack-All', @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default6 RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 7