【发布时间】:2013-09-10 11:19:00
【问题描述】:
现在,当我进行备份时,我收到了错误,问题不是错误,问题在 如何捕获此错误消息正文并通过电子邮件发送或将其插入表中
我已存储备份
EXEC dbo.dothebackup2;
执行后我收到此错误:
Msg 3206, Level 16, State 1, Line 1
Backup device 'Professor_Tape' does not exist. To view existing backup devices, use the sys.backup_devices catalog view. To create a new backup device use either sp_addumpdevice or SQL Server Management Studio.
Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.
现在如何将这条消息保存在表格中?
【问题讨论】:
标签: sql-server database syntax-error email-attachments database-administration