createprocedure[dbo].[MssWebDeleteScheduledMessage] @inScheduledMessageIdint as begin setnocounton delete fromSakariScheduledMessage whereSakariScheduledMessage.SakariScheduledMessageID=@inScheduledMessageId end GO GRANTEXECUTEON[dbo].[MssWebDeleteScheduledMessage]TO[MssExec] GO