dbo.ATT_TDAttestationPolicyHasAppr
Database TriggerSQL_TRIGGERSandbox DB
Interpretation
- Database trigger. Treat parent table and enqueue/object-layer calls as the main relation points.
Relations
- Trigger parent table: AttestationPolicyHasApprover
Typed Edges
- trigger on table AttestationPolicyHasApprover Trigger parent table: AttestationPolicyHasApprover
- 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 ATT_TDAttestationPolicyHasAppr2 ON AttestationPolicyHasApprover 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) = dbo.QBM_FGISessionContext('')13 DECLARE @RecalcParameter_01 QBM_YCursorBuffer14 INSERT INTO @RecalcParameter_01(ObjectKey1,15 UID1,16 Ident1)17 SELECT18 dbo.QBM_FCVElementToObjectKey1('Person',19 '',20 d.UID_Person),21 'ATT-PWODecisionRule-AS',22 'A'23 FROM deleted d24 EXEC QER_PITShopHelperFill_Recalc @RecalcParameter_01,25 @GenprocID26 END TRY27 BEGIN CATCH28 EXEC QBM_PSessionErrorAdd DEFAULT29 RAISERROR('',30 18,31 1)32 WITH NOWAIT33 END CATCH34 ende:35 RETURN36END
Open raw exported source
1 create trigger ATT_TDAttestationPolicyHasAppr on AttestationPolicyHasApprover for Delete not for Replication as begin BEGIN TRY if exists2 (select top 1 1 from deleted) goto start return start: declare @GenProcID varchar(38) = dbo.QBM_FGISessionContext('') declare @RecalcParameter_01 QBM_YCursorBuffer3 insert into @RecalcParameter_01 (ObjectKey1, UID1, Ident1) select dbo.QBM_FCVElementToObjectKey1('Person', '', d.UID_Person), 'ATT-PWODecisionRule-AS'4, 'A' from deleted d exec QER_PITShopHelperFill_Recalc @RecalcParameter_01, @GenprocID END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR5 ('', 18, 1) WITH NOWAIT END CATCH ende: return end 6