Last active
August 29, 2017 13:14
-
-
Save regme/d3e5b267d70818965ebdaefd05a2517a to your computer and use it in GitHub Desktop.
JobLog info
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select *, Name + ' is running for ' + CONVERT(varchar(10),DATEDIFF(minute,startdate, getutcdate()), 114) + ' minutes on [Advisory_Fact_Test]' from [Advisory_Fact_Test].dbo.JobLog | |
| where stopDate is null and startdate > getutcdate() - 7 | |
| union all | |
| select *, Name + ' is running for ' + CONVERT(varchar(10),DATEDIFF(minute,startdate, getutcdate()), 114) + ' minutes on [AdvisoryFact]' from [AdvisoryFact].dbo.JobLog | |
| where stopDate is null and startdate > getutcdate() - 7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment