告诉sql server中作业失败的字段 [英] field that tells if job failed in sql server

查看:91
本文介绍了告诉sql server中作业失败的字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

msdb.dbo.sysjobhistory中的哪个字段告诉作业失败或成功完成?

或任何其他表中的任何其他字段???

解决方案

那将是 run_status



注意:严格来说 run_status = 0 表示失败,但您可能最好使用 run_status<> 1 ...... I.e。 没有成功



参考列表 [ ^ ]

which field in msdb.dbo.sysjobhistory tells if Job Failed or completed successfully ??
Or any other field in any other table ???

解决方案

That will be run_status

Note: strictly speaking run_status = 0 means "failed" but you might be better off using run_status <> 1 ... I.e. "did not succeed"

reference list[^]


这篇关于告诉sql server中作业失败的字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆