dbo.LDP_TULDPDomain
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 -> LDP-K-BaseTreeOwnsObject / LDP_ZBaseTreeOwnsObject at line 7
- References QBM_PDBQueueInsert_Bulk
- Trigger parent table: LDPDomain
Typed Edges
- queues DBQueue task LDP_ZBaseTreeOwnsObject at line 7 Bulk DBQueue insert -> LDP-K-BaseTreeOwnsObject / LDP_ZBaseTreeOwnsObject at line 7
- trigger on table LDPDomain Trigger parent table: LDPDomain
- 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 source dbo.QER_PITShopHelperFill source text reference
- references source dbo.QER_PITShopHelperFill_Recalc source text reference
References
- dbo.QBM_FGISessionContext
- dbo.QBM_PDBQueueInsert_Bulk
- dbo.QBM_PSessionErrorAdd
- dbo.QER_PITShopHelperFill
- dbo.QER_PITShopHelperFill_Recalc
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger LDP_TULDPDomain2 ON LDPDomain FOR3UPDATE NOT FOR Replication4AS5BEGIN6 BEGIN TRY7 IF EXISTS(8 SELECT TOP 1 19 FROM inserted)10 GOTO start11 IF EXISTS(12 SELECT TOP 1 113 FROM deleted)14 GOTO start15 RETURN start:16 DECLARE @GenProcID varchar(38)17 SELECT @GenProcID = dbo.QBM_FGISessionContext('')18 DECLARE @errno int19 DECLARE @errmsg nvarchar(255)20 DECLARE @Parameter nvarchar(1000)21 IF22 UPDATE(uid_AERoleOwner)23 BEGIN24 DECLARE @RecalcParameter_01 QBM_YCursorBuffer25 INSERT INTO @RecalcParameter_01(UID1,26 ObjectKey1,27 Ident1)28 SELECT29 'TSB-PWODecisionRule-TO',30 i.XObjectKey,31 'I'32 FROM inserted i33 UNION all34 SELECT35 'QER-PWODecisionRule-OX',36 i.XObjectKey,37 'I'38 FROM inserted i39 EXEC QER_PITShopHelperFill_Recalc @RecalcParameter_01,40 @GenprocID41 END42 IF43 UPDATE(uid_AERoleOwner)44 BEGIN45 DECLARE @DBQueueElements_01 QBM_YDBQueueRaw46 INSERT INTO @DBQueueElements_01(object,47 subobject,48 genprocid)49 SELECT50 x.uid,51 NULL,52 @GenProcID53 FROM(54 SELECT d.UID_LDPDomain AS uid55 FROM deleted d) AS x56 EXEC QBM_PDBQueueInsert_Bulk 'LDP-K-BaseTreeOwnsObject',57 @DBQueueElements_0158 END59 END TRY60 BEGIN CATCH61 EXEC QBM_PSessionErrorAdd DEFAULT62 RAISERROR('',63 18,64 1)65 WITH NOWAIT66 END CATCH67 ende:68 RETURN69END
Open raw exported source
1create trigger LDP_TULDPDomain on LDPDomain for Update not for Replication as begin BEGIN TRY if exists (select top 1 1 from inserted) goto 2start if exists (select top 1 1 from deleted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('')3 declare @errno int declare @errmsg nvarchar(255) declare @Parameter nvarchar(1000) if update(uid_AERoleOwner) begin declare @RecalcParameter_01 QBM_YCursorBuffer4 insert into @RecalcParameter_01 (UID1, ObjectKey1, Ident1) select 'TSB-PWODecisionRule-TO', i.XObjectKey, 'I' from inserted i union all select 'QER-PWODecisionRule-OX'5, i.XObjectKey, 'I' from inserted i exec QER_PITShopHelperFill_Recalc @RecalcParameter_01, @GenprocID end if update(uid_AERoleOwner) begin declare @DBQueueElements_016 QBM_YDBQueueRaw insert into @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select d.UID_LDPDomain as uid from7 deleted d ) as x exec QBM_PDBQueueInsert_Bulk 'LDP-K-BaseTreeOwnsObject', @DBQueueElements_01 end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd8 default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 9