Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Long Running Jobs Monitor Expand / Collapse
Author
Message
Posted Monday, July 15, 2013 8:46 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, November 19, 2015 3:57 PM
Points: 1,002, Visits: 885
Comments posted to this topic are about the item Long Running Jobs Monitor

/* ----------------------------- */
Tochter aus Elysium, Wir betreten feuertrunken, Himmlische, dein Heiligtum!

Post #1473956
Posted Wednesday, July 23, 2014 7:00 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Friday, June 24, 2016 2:55 AM
Points: 96, Visits: 561
Thanks for good script. I needed to log this event to the windows application log so I commented out this part of the script:

--Email the SQL Group a list of jobs running over nn hours
-- exec msdb..sp_send_dbmail
-- @recipients = @EMailAlertAddress,
-- @copy_recipients = @EMailCCAddress,
-- @body = @msg,
-- @subject = @Subject

--Send errormessage in Windows Application Event log

and added:
EXEC master.dbo.xp_logevent 60000, 'Long running job please investigate', error

We don't have the SQL Plugin to HP Operations Manager so I needed to log the event in the Event log so the monitor team can inform me when jobs hang.



Post #1595473
Posted Monday, May 2, 2016 1:05 PM
SSCrazy Eights

SSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy Eights

Group: General Forum Members
Last Login: Today @ 7:49 AM
Points: 8,308, Visits: 854
Thanks for the script.
Post #1782640
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse