


















在服务器没有设置发邮件并且不允许发邮件的情况下, 可以通过下列语句来检查SQL Server 的job的执行情况
select top 150 a.run_date,a.run_time, b.name,step_id,step_name,a.message,a.run_status,a.run_duration
from msdb.dbo.sysjobhistory a ,msdb.dbo.sysjobs b
where a.job_id=b.job_id and name not in('job_exclude') and a.step_id>0
order by run_date desc
参考网址:
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。