设置警报通知 本节介绍了设置警报通知的相关内容 操作场景 使用存储过程设置警报通知。 前提条件 成功连接RDS for SQL Server实例。通过SQL Server客户端连接目标实例。 操作步骤 执行以下命令,设置警报通知。 EXEC [msdb].[dbo].[rdsaddnotification] @alertname'alert', @operatorname'operator', @notificationmethod notificationmethod; 表 参数说明 参数 说明 'alert' 通知的警报。警报是sysname,无默认值。 'operator' 当出现警报时通知的操作员。运算符是sysname,无默认值。 notificationmethod 依据通知操作员的方法。notificationmethod是tinyint,无默认值。notificationmethod可以是一个或多个值结合OR逻辑运算符。 值为1,电子邮件。 值为2,寻呼程序。 值为4,net send。 执行成功后,系统将会如下提示: plaintext Commands completed successfully. 示例 回显结果如下: