现在,当我进行备份时,我收到错误问题不是错误问题中的问题如何捕获此错误消息正文并通过电子邮件发送或将其插入表中
我已存储备份
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.
现在如何将这条消息保存在表格中?