CREATEPROCEDURE[dbo].[EmailApiGetPdfInputHtml] @inOutgoingEmailIdint AS begin setnocounton selectOutgoingEmailPdfInput.PdfHtmlContent fromOutgoingEmailPdfInput whereOutgoingEmailPdfInput.OutgoingEmailFid=@inOutgoingEmailId end GO GRANTEXECUTEON[dbo].[EmailApiGetPdfInputHtml]TO[MssExec] GO