dbo.ARS_TATTUAdsGroup
Database TriggerSQL_TRIGGERSandbox DB
Interpretation
- Database trigger. Treat parent table and enqueue/object-layer calls as the main relation points.
Relations
- Trigger parent table: ADSGroup
Typed Edges
- trigger on table ADSGroup Trigger parent table: ADSGroup
- references source dbo.QBM_FGISessionContext 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_PSessionErrorAdd
- dbo.QER_PITShopHelperFill
- dbo.QER_PITShopHelperFill_Recalc
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger ARS_TATTUAdsGroup2 ON AdsGroup FOR3UPDATE NOT FOR Replication4AS5BEGIN6 DECLARE @Parameter nvarchar(256)7 BEGIN TRY8 IF EXISTS(9 SELECT TOP 1 110 FROM inserted)11 GOTO start12 IF EXISTS(13 SELECT TOP 1 114 FROM deleted)15 GOTO start16 RETURN start:17 DECLARE @GenProcID varchar(38)18 SELECT @GenProcID = dbo.QBM_FGISessionContext('')19 IF20 UPDATE(edsvaSecondaryOwners)21 BEGIN22 DECLARE @RecalcParameter_01 QBM_YCursorBuffer23 INSERT INTO @RecalcParameter_01(ObjectKey1,24 UID1,25 Ident1)26 SELECT27 'irgendwas' AS Objectkey,28 'ARS-AttestationRule-PA',29 'A'30 EXEC QER_PITShopHelperFill_Recalc @RecalcParameter_01,31 @GenprocID32 END33 IF34 UPDATE(edsvaSecondaryOwners) OR35 UPDATE(UID_AccProduct)36 BEGIN37 DECLARE @RecalcParameter_02 QBM_YCursorBuffer38 INSERT INTO @RecalcParameter_02(ObjectKey1,39 UID1,40 Ident1)41 SELECT42 i.XObjectKey AS Objectkey,43 'ARS-AttestationRule-KA',44 'A'45 FROM inserted i46 EXEC QER_PITShopHelperFill_Recalc @RecalcParameter_02,47 @GenprocID48 END49 END TRY50 BEGIN CATCH51 EXEC QBM_PSessionErrorAdd DEFAULT52 RAISERROR('',53 18,54 1)55 WITH NOWAIT56 END CATCH57 ende:58 RETURN59END
Open raw exported source
1 create trigger ARS_TATTUAdsGroup on AdsGroup for Update not for Replication as begin declare @Parameter nvarchar(256) BEGIN TRY if exists (select2 top 1 1 from inserted) goto start if exists (select top 1 1 from deleted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = 3dbo.QBM_FGISessionContext('') if update(edsvaSecondaryOwners) begin declare @RecalcParameter_01 QBM_YCursorBuffer insert into @RecalcParameter_01 (ObjectKey14, UID1, Ident1) select 'irgendwas' as Objectkey, 'ARS-AttestationRule-PA', 'A' exec QER_PITShopHelperFill_Recalc @RecalcParameter_01, @GenprocID end 5if update(edsvaSecondaryOwners) or update (UID_AccProduct) begin declare @RecalcParameter_02 QBM_YCursorBuffer insert into @RecalcParameter_02 (ObjectKey16, UID1, Ident1) select i.XObjectKey as Objectkey, 'ARS-AttestationRule-KA', 'A' from inserted i exec QER_PITShopHelperFill_Recalc @RecalcParameter_02, 7@GenprocID end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 8