Stored Procedures [dbo].[GetAndHoldLockActiveSubscription]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@ActiveIDuniqueidentifier16
Permissions
TypeActionOwning Principal
GrantExecuteRSExecRole
SQL Script
CREATE PROCEDURE [dbo].[GetAndHoldLockActiveSubscription]
@ActiveID uniqueidentifier
AS
select
    TotalNotifications,
    TotalSuccesses,
    TotalFailures
from
    ActiveSubscriptions with (XLOCK)
where
    ActiveID = @ActiveID

GO
GRANT EXECUTE ON  [dbo].[GetAndHoldLockActiveSubscription] TO [RSExecRole]
GO
Uses