Back to OIM Explorer

dbo.ADS_TIRMSESetHasEntitlement

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on ESetHasEntitlement. Trigger parent table: ESetHasEntitlement

Source: sandbox-db sys.sql_modules

Source size: 642 characters

Interpretation

  • Database trigger. Treat parent table and enqueue/object-layer calls as the main relation points.

Relations

  • Trigger parent table: ESetHasEntitlement

Typed Edges

  • trigger on table ESetHasEntitlement Trigger parent table: ESetHasEntitlement
  • references source dbo.QBM_FGISessionContext source text reference
  • references source dbo.QBM_PSessionErrorAdd source text reference

References

Referenced By

  • No direct source references extracted.

Complete Source

SQL35 lines
1CREATE trigger ADS_TIRMSESetHasEntitlement2  ON ESetHasEntitlement 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)13    SELECT @GenProcID = dbo.QBM_FGISessionContext('')14    IF EXISTS(15      SELECT TOP 1 116      FROM inserted i17      JOIN ADSGroup x18        ON i.Entitlement = x.XObjectKey AND x.HasReadOnlyMemberships = 1)19    BEGIN20      RAISERROR('#LDS#Cannot make assignment because it involves a group with read only memberships.|',21      18,22      2)23        WITH nowait24    END25  END TRY26  BEGIN CATCH27    EXEC QBM_PSessionErrorAdd DEFAULT28    RAISERROR('',29    18,30    1)31      WITH NOWAIT32  END CATCH33  ende:34  RETURN35END
Open raw exported source
SQL ยท Raw5 lines
1create   trigger ADS_TIRMSESetHasEntitlement on ESetHasEntitlement  for Insert not for Replication as begin  BEGIN TRY if exists (select top 1 12 from inserted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('')  if exists (select top 1 1 from3 inserted i join ADSGroup x on i.Entitlement = x.XObjectKey and x.HasReadOnlyMemberships = 1) begin raiserror( '#LDS#Cannot make assignment because it involves a group with read only memberships.|'4, 18, 2) with nowait end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 5