当我运行程序msdb.dbo.sp_send_dbmail时,正在发送电子邮件.另外当我使用数据库邮件发送测试电子邮件它工作正常.但是当我设置Job失败通知时,在作业日志中我看到以下信息:注意:无法通过电子邮件通知“sql作业失败”.
我不知道这个问题的根源是什么.我发现这个提示: http://sqlblog.jfperry.com/jpsql/post/2009/04/07/NOTE-Failed-to-notify-7boperator7d-via-email.aspx
解决方法
Ensure DB mail is enabled within the sql Server Surface Area Configuration. Do this by right clicking the server name and selecting
FACETS from the menu Select the ‘Server Configuration’ from Facet
dropdown Ensure Facet Property of ‘Databasemailenabled’ is TrueSet up a Mail Profile within the Management Folder of your server
Within sql Server Agent set up an Operator
Look in the properties of the sql Server Agent (right-click properties) and under the Alert System page tick ‘Enable mail profile’
and select your default profile that you set up in step 2.Restart the sql Server Agent
原文地址:https://www.jb51.cc/mssql/76072.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。