dbo.LDP_TATTULDAPAccount
Database TriggerSQL_TRIGGERSandbox DB
Interpretation
- Database trigger. Treat parent table and enqueue/object-layer calls as the main relation points.
Relations
- Trigger parent table: LDAPAccount
Typed Edges
- trigger on table LDAPAccount Trigger parent table: LDAPAccount
- references source dbo.QBM_FCVElementToObjectKey1 source text reference
- 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_FCVElementToObjectKey1
- dbo.QBM_FGISessionContext
- dbo.QBM_PSessionErrorAdd
- dbo.QER_PITShopHelperFill
- dbo.QER_PITShopHelperFill_Recalc
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger LDP_TATTULDAPAccount2 ON LDAPAccount FOR3UPDATE NOT FOR Replication4AS5BEGIN6 DECLARE @GenProcID varchar(38) = dbo.QBM_FGISessionContext('')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 IF18 UPDATE(UID_Person)19 BEGIN20 DECLARE @RecalcParameter_01 QBM_YCursorBuffer21 INSERT INTO @RecalcParameter_01(ObjectKey1,22 UID1,23 Ident1)24 SELECT25 dbo.QBM_FCVElementToObjectKey1('Person',26 '',27 i.UID_Person),28 v.UID_PWODecisionRule,29 'A'30 FROM inserted i CROSS31 JOIN(32 VALUES('ATT-PWODecisionRule-XM')) AS v(UID_PWODecisionRule)33 EXEC QER_PITShopHelperFill_Recalc @RecalcParameter_01,34 @GenprocID35 END36 END TRY37 BEGIN CATCH38 EXEC QBM_PSessionErrorAdd DEFAULT39 RAISERROR('',40 18,41 1)42 WITH NOWAIT43 END CATCH44 ende:45 RETURN46END
Open raw exported source
1 create trigger LDP_TATTULDAPAccount on LDAPAccount for Update not for Replication as begin declare @GenProcID varchar(38) = dbo.QBM_FGISessionContext2('') BEGIN TRY if exists (select top 1 1 from inserted) goto start if exists (select top 1 1 from deleted) goto start return start: if update(UID_Person3) begin declare @RecalcParameter_01 QBM_YCursorBuffer insert into @RecalcParameter_01 (ObjectKey1, UID1, Ident1) select dbo.QBM_FCVElementToObjectKey14('Person', '', i.UID_Person), v.UID_PWODecisionRule, 'A' from inserted i cross join (values ('ATT-PWODecisionRule-XM') ) as v (UID_PWODecisionRule) exec5 QER_PITShopHelperFill_Recalc @RecalcParameter_01, @GenprocID end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT6 END CATCH ende: return end 7