微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

sql-server-2008-r2 – 错误:注意:无法通过电子邮件通知“运算符”.当工作失败时尝试发送电子邮件

当作业失败时,我发送通知有问题.我创建了数据库邮件配置文件,并将其分配给sql Agent和重新启动的sql Agent.
当我运行程序msdb.dbo.sp_send_dbmail时,正在发送电子邮件.另外当我使用数据库邮件发送测试电子邮件它工作正常.但是当我设置Job失败通知时,在作业日志中我看到以下信息:注意:无法通过电子邮件通知sql作业失败”.
我不知道这个问题的根源是什么.我发现这个提示http://sqlblog.jfperry.com/jpsql/post/2009/04/07/NOTE-Failed-to-notify-7boperator7d-via-email.aspx

但是我检查了sql代理中的配置文件是否启用. sql代理已重新启动.哪里可以解决问题的根源?

解决方法

正如你在你的问题中提到的,我的问题确实是代理人的邮件配置文件 – 谢谢提示.

this post底部提到的其他提示包括

  1. 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 True

  2. Set up a Mail Profile within the Management Folder of your server

  3. Within sql Server Agent set up an Operator

  4. 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.

  5. Restart the sql Server Agent

原文地址:https://www.jb51.cc/mssql/76072.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐