Comments on: March Madness – SQL Server System Tables – sysjobhistory https://thomaslarock.com/2011/04/march-madness-sql-server-system-tables-sysjobhistory/ 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, 03 Oct 2012 15:58:23 +0000 hourly 1 https://wordpress.org/?v=6.7.2 By: HOW TO: Find Currently Running Long SQL Agent Jobs | SQLRockstar | Thomas LaRock https://thomaslarock.com/2011/04/march-madness-sql-server-system-tables-sysjobhistory/#comment-7396 Wed, 03 Oct 2012 15:58:23 +0000 http://thomaslarock.com/?p=5554#comment-7396 […] SQL Agent JobsLast year I did a series on the system tables inside of SQL Server, which included this post on the sysjobhistory table in the msdb database. As much as I like (and use) that code from time to time to help people […]

]]>
By: ThomasLaRock https://thomaslarock.com/2011/04/march-madness-sql-server-system-tables-sysjobhistory/#comment-7086 Fri, 06 Jul 2012 20:46:00 +0000 http://thomaslarock.com/?p=5554#comment-7086 In reply to anon.

When I run your example it returns a value of 45296, the number of seconds since midnight. Nice!

I’m not sure there is any reason for using my version of the code versus an updated version using your method. The real question I have is this: why is MS not using an actual date for that field?!?

]]>
By: anon https://thomaslarock.com/2011/04/march-madness-sql-server-system-tables-sysjobhistory/#comment-7081 Thu, 05 Jul 2012 19:24:00 +0000 http://thomaslarock.com/?p=5554#comment-7081 In reply to Thomas LaRock.

I don’t get the reasoning for converting the HHMMSS to a string and using text processing. It’s not like you are sanity checking the string. Why not use integer arithmetic?

declare @t int = 123456 –12:34:56

select @t/10000*3600 + @i/100%100*60 + @i%100

]]>
By: How To Find Long Running Backups in SQL Server | SQLRockstar | Thomas LaRock https://thomaslarock.com/2011/04/march-madness-sql-server-system-tables-sysjobhistory/#comment-6974 Tue, 22 May 2012 14:55:59 +0000 http://thomaslarock.com/?p=5554#comment-6974 […] written before about how much I love looking for outliers. One example of this can be found in the post I did on the sysjobhistory table. Recently I was asked to put together some code to find out which backups were “running […]

]]>
By: Current Long-Running Agent Jobs « wklambert https://thomaslarock.com/2011/04/march-madness-sql-server-system-tables-sysjobhistory/#comment-6950 Wed, 09 May 2012 14:10:30 +0000 http://thomaslarock.com/?p=5554#comment-6950 […] reading a blog post from Tom LaRock (b|t|g+) from about this time last year, and then another post that Brad Schulz (b) […]

]]>
By: Brad Schulz https://thomaslarock.com/2011/04/march-madness-sql-server-system-tables-sysjobhistory/#comment-2412 Tue, 05 Apr 2011 17:49:36 +0000 http://thomaslarock.com/?p=5554#comment-2412 Hi Tom…

I posted a followup to this post… Hope you enjoy it:

http://bradsruminations.blogspot.com/2011/04/sysjobhistory-outliers.html

–Brad

]]>
By: Thomas LaRock https://thomaslarock.com/2011/04/march-madness-sql-server-system-tables-sysjobhistory/#comment-2411 Sun, 03 Apr 2011 13:05:07 +0000 http://thomaslarock.com/?p=5554#comment-2411 In reply to Brad Schulz.

Brad,

You are right! I am going to pull the code from the post for now until I have time to update it properly.

]]>