惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
The GitHub Blog
The GitHub Blog
C
Check Point Blog
博客园_首页
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
F
Full Disclosure
Microsoft Security Blog
Microsoft Security Blog
爱范儿
爱范儿
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
G
GRAHAM CLULEY
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
C
Cybersecurity and Infrastructure Security Agency CISA
V
Vulnerabilities – Threatpost
K
Kaspersky official blog
博客园 - 司徒正美
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
Project Zero
Project Zero
云风的 BLOG
云风的 BLOG
Cisco Talos Blog
Cisco Talos Blog
Know Your Adversary
Know Your Adversary
雷峰网
雷峰网
V
V2EX - 技术
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Spread Privacy
Spread Privacy
罗磊的独立博客
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
SecWiki News
SecWiki News
Schneier on Security
Schneier on Security
O
OpenAI News
Jina AI
Jina AI
PCI Perspectives
PCI Perspectives
Cyberwarzone
Cyberwarzone
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog RSS Feed
I
InfoQ
D
Docker
P
Palo Alto Networks Blog
Recorded Future
Recorded Future
M
MIT News - Artificial intelligence
博客园 - Franky
B
Blog
Scott Helme
Scott Helme
博客园 - 叶小钗
D
DataBreaches.Net

博客园 - 永无止境

win8 hyper-v 禁用不必卸载虚拟机 如何在Windows中解决与WMI相关的问题 Sql Server 数据库状态可疑的解决方法 XNA 学习网站 Oracle 制造死锁和查询死锁 WMI 拒绝访问 解决方法之二 WMI 拒绝访问问题 WMI 实现Windows代理ping SqlServer 查看死锁信息 WMI 无法监视时必须要尝试的手段 winmgmt /resyncperf 浅谈.NET下的多线程和并行计算(转载) SQLServer支持大内存方案(转载) WMI 命名空间刷新,用于WMI缺少部分命名空间类的时候修复 Visual C#使用DirectX实现视频播放 DirectX技术实现视频会议中的音频通信 - 永无止境 网络拓扑发现原理研究 linux下使用WMI windows WMIC命令大全 - 永无止境 防止控件重绘闪烁
SqlServer 查询作业执行持续时间
永无止境 · 2011-10-10 · via 博客园 - 永无止境
select
job_name,
run_datetime,
SUBSTRING(run_duration, 1, 2) + ':' + SUBSTRING(run_duration, 3, 2) + ':' +
SUBSTRING(run_duration, 5, 2) AS run_duration
from
(
select
job_name,
DATEADD(hh,
-7, run_datetime) as run_datetime,
run_duration
= RIGHT('000000' + CONVERT(varchar(6), h.run_duration), 6)
from
(
select
j.name
as job_name,
run_datetime
= max(CONVERT(DATETIME, RTRIM(run_date)) +
(run_time
* 9 + run_time % 10000 * 6 + run_time % 100 * 10) / 216e4)
from msdb..sysjobhistory h
inner join msdb..sysjobs j
on h.job_id = j.job_id
group by j.name
) t
inner join msdb..sysjobs j
on t.job_name = j.name
inner join msdb..sysjobhistory h
on j.job_id = h.job_id and
t.run_datetime
= CONVERT(DATETIME, RTRIM(h.run_date)) + (h.run_time * 9 + h.run_time % 10000 * 6 + h.run_time % 100 * 10) / 216e4
) dt