设为首页 加入收藏

TOP

磁盘空间&SQL日志&作业执行情况(二)
2015-11-21 02:04:02 来源: 作者: 【 】 浏览:1
Tags:磁盘 空间 &SQL日志 作业 执行 情况
when LEN(b.run_time)=3 then '0:0'+SUBSTRING(convert(varchar(6),b.run_time),1,1)+':'+RIGHT(b.run_time,2) when LEN(b.run_time)=4 then '0:'+LEFT(b.run_time,2)+':'+RIGHT(b.run_time,2) when len(b.run_time)=5 then left(b.run_time,1)+':'+SUBSTRING(convert(varchar(6),b.run_time),2,2)+':'+right(b.run_time,2) else left(b.run_time,2)+':'+SUBSTRING(convert(varchar(6),b.run_time),3,2)+':'+right(b.run_time,2)end'运行时间', case when b.run_status=1 then '成功' else '失败' end '状态' FROM [msdb].[dbo].[sysjobs_view] a ,[msdb].[dbo].[sysjobhistory] b where a.job_id =b.job_id and (a.category_id =0 or a.category_id =3)
首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇我与ADO.NET二三事 下一篇【PostgreSQL】PostgreSQL语法

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: