Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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, April 17, 2014 4:56 AM
Points: 1,002, Visits: 884
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: Today @ 12:23 AM
Points: 83, Visits: 513
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
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse