Back to OIM Explorer

dbo.ATT_TIAttestationPolicyHasAppr

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on AttestationPolicyHasApprover. Trigger parent table: AttestationPolicyHasApprover

Source: sandbox-db sys.sql_modules

Source size: 673 characters

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 source dbo.ATT_TIAttestationPolicy source text reference

Complete Source

SQL36 lines
1CREATE trigger ATT_TIAttestationPolicyHasAppr2  ON AttestationPolicyHasApprover FOR3INSERT NOT FOR Replication4AS5BEGIN6  BEGIN TRY7    IF EXISTS(8      SELECT TOP 1 19      FROM inserted)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      i.UID_Person),21      'ATT-PWODecisionRule-AS',22      'A'23    FROM inserted i24    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
SQL · Raw6 lines
1create   trigger ATT_TIAttestationPolicyHasAppr  on AttestationPolicyHasApprover  for Insert not for Replication as begin  BEGIN TRY if exists (select2 top 1 1 from inserted) 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', '', i.UID_Person), 'ATT-PWODecisionRule-AS'4, 'A' from inserted i 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