[dbo].[MssWebGetSmsUnreadMessageCount]
CREATE procedure [dbo].[MssWebGetSmsUnreadMessageCount]
@inSysUserId int
as
begin
select
isnull(sum(messageCount.updateCount),0)
from UdfGetUnreadAndScheduledMessageCount(@inSysUserId) as messageCount
end
GO
GRANT EXECUTE ON [dbo].[MssWebGetSmsUnreadMessageCount] TO [MssExec]
GO