[dbo].[MssWebGetSmsUnreadMessageCount]
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