Stored Procedures [dbo].[MssWebGetSmsUnreadMessageCount]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@inSysUserIdint4
Permissions
TypeActionOwning Principal
GrantExecuteMssExec
SQL Script
CREATE procedure [dbo].[MssWebGetSmsUnreadMessageCount]
    @inSysUserId int
as
begin
    set nocount on;
    declare @subscribedOnly bit  = 1;
    select isnull(sum(ContactMessagesCount.updateCount),0)
    from [dbo].udfGetUnreadAndScheduledMessageCount(@inSysUserId,@subscribedOnly) as ContactMessagesCount
end
GO
GRANT EXECUTE ON  [dbo].[MssWebGetSmsUnreadMessageCount] TO [MssExec]
GO
Uses