Failure to execute msdb.dbo.sp_send_dbmail

前端 未结 5 1029
滥情空心
滥情空心 2021-02-07 09:21

I am getting this error:

Msg 229, Level 14, State 5, Procedure sp_send_dbmail, Line 1
The EXECUTE permission was denied on the object \'sp_send_dbma

5条回答
  •  你的背包
    2021-02-07 09:34

    Found nice and easy fix that worked for me here:

    If your SQL applications can’t send email using database mail (I assume you already have DBMail Account and Profile setup), there are two things to set:

    1. SQL MANAGEMENT STUDIO > MANAGEMENT > DATABASE MAIL > right click and select CONFIGURE… > select MANAGE PROFILE SECURITY > SQL MANAGEMENT
    2. put a check on PUBLIC option
    3. click on DEFAULT PROFILE and set it to YES
    4. STUDIO > DATABASES > SYSTEM DATABASES > right click on MSDB and select NEW QUERY > then enter > grant execute on sp_send_dbmail to public and click OK

提交回复
热议问题