Comments on: HOW TO: Find Currently Running Long SQL Agent Jobs https://thomaslarock.com/2012/10/how-to-find-currently-running-long-sql-agent-jobs/ Thomas LaRock is an author, speaker, data expert, and SQLRockstar. He helps people connect, learn, and share. Along the way he solves data problems, too. Wed, 19 Jul 2023 12:20:05 +0000 hourly 1 https://wordpress.org/?v=6.7.2 By: Thomas LaRock https://thomaslarock.com/2012/10/how-to-find-currently-running-long-sql-agent-jobs/#comment-92715 Wed, 19 Jul 2023 12:20:05 +0000 http://thomaslarock.com/?p=9435#comment-92715 In reply to Tim Cartwright.

Thank you!

]]>
By: Tim Cartwright https://thomaslarock.com/2012/10/how-to-find-currently-running-long-sql-agent-jobs/#comment-92670 Fri, 07 Jul 2023 14:32:42 +0000 http://thomaslarock.com/?p=9435#comment-92670 Thomas I know this is old, but was exactly what I was looking for. I made some slight changes to it. Keep up the good work.

https://gist.github.com/tcartwright/e34d1da5b93551a848066ba59c3d55dd

]]>
By: Kevin3NF https://thomaslarock.com/2012/10/how-to-find-currently-running-long-sql-agent-jobs/#comment-75078 Wed, 05 Aug 2020 16:33:35 +0000 http://thomaslarock.com/?p=9435#comment-75078 Best Disclaimer ever 🙂

]]>
By: HOW TO: Find Currently Running Long SQL Agent Jobs - Thomas LaRock https://thomaslarock.com/2012/10/how-to-find-currently-running-long-sql-agent-jobs/#comment-15982 Fri, 12 May 2017 20:29:46 +0000 http://thomaslarock.com/?p=9435#comment-15982 […] while ago I had posted a script to help find jobs that were currently running longer than expected. Since I’ve been sharing […]

]]>
By: ThomasLaRock https://thomaslarock.com/2012/10/how-to-find-currently-running-long-sql-agent-jobs/#comment-15920 Wed, 12 Apr 2017 15:36:00 +0000 http://thomaslarock.com/?p=9435#comment-15920 In reply to LukeNext2U.

Deviation refers to standard deviation. The code will return jobs that are running for longer than 2 standard deviations away from the mean. HTH

]]>
By: LukeNext2U https://thomaslarock.com/2012/10/how-to-find-currently-running-long-sql-agent-jobs/#comment-15917 Thu, 06 Apr 2017 16:17:00 +0000 http://thomaslarock.com/?p=9435#comment-15917 This seems great. Will try it out. I am a little unclear what is meant by deviation though. Say a job that runs on average 10 minutes, is running for 12 minutes when this is ran. Will the query return this job with column [Min Threshold (secs)] 120 seconds? Or will it be twice that since it’s multiplied by 2? Ideally I would want this to return something if jobs are running twice as long or more as they do on average. Thanks!

]]>
By: Cooking SQL https://thomaslarock.com/2012/10/how-to-find-currently-running-long-sql-agent-jobs/#comment-15848 Thu, 16 Feb 2017 04:22:45 +0000 http://thomaslarock.com/?p=9435#comment-15848 […] https://thomaslarock.com/2012/10/how-to-find-currently-running-long-sql-agent-jobs/ […]

]]>