sp_notify_operator的T-SQL Server代理格式化消息

问题描述 投票:0回答:1

我想格式化存储过程sp_notify_operator的消息

但它不像参数@body_format ='HTML'那样使用sp_send_dbmail。

EXEC msdb.dbo.sp_notify_operator 
    @profile_name = 'Mail Service',  
    @name = @Operator,  
    @body = @MSG,
    @subject = 'Automated Success Message' ;

使用此存储过程非常重要,因为我想通知一个操作员配置文件。

有人有什么想法吗?

html tsql format operator-keyword sp-send-dbmail
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.