dbo.LDP_TIRMSESetHasEntitlement
Database TriggerSQL_TRIGGERSandbox DB
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
1CREATE trigger LDP_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 LDAPGroup x18 ON i.Entitlement = x.XObjectKey AND x.IsDynamicGroup = 1)19 BEGIN20 RAISERROR('#LDS#Cannot add {0} because assignments for dynamic groups are not permitted.|EsetHasEntitlement|',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
1 create trigger LDP_TIRMSESetHasEntitlement on ESetHasEntitlement for Insert not for Replication as begin BEGIN TRY if exists (select top 12 1 from inserted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('') if exists (select top 1 1 3from inserted i join LDAPGroup x on i.Entitlement = x.XObjectKey and x.IsDynamicGroup = 1) begin raiserror( '#LDS#Cannot add {0} because assignments for dynamic groups are not permitted.|EsetHasEntitlement|'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