Generic failure using sp_send_dbmail in SQL Server 2014

后端 未结 3 2104
时光说笑
时光说笑 2021-01-13 23:51

I\'m trying to use sp_send_dbmail to send the results of a query through a SQLAgent job in SQL Server 2014. I believe I have my DBMail profile set up properly

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-14 00:49

    Enable sysadmin server role for the account that is used to run the SQL Server Agent.Below are the screenshots.

    Error

    Fix

    Now the SQL Server Job runs without any errors and I get an email from dbmail.

提交回复
热议问题