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

相关文章

SELECT a.*,b.dp_name,c.pa_name,fm_name=(CASE WHEN a.fm_n...
if not exists(select name from syscolumns where name=&am...
select a.*,pano=a.pa_no,b.pa_name,f.dp_name,e.fw_state_n...
要在 SQL Server 2019 中设置定时自动重启,可以使用 Window...
您收到的错误消息表明数据库 'EastRiver' 的...
首先我需要查询出需要使用SQL Server Profiler跟踪的数据库标...