Hello SSC,
I am a SQL Server developer that has some DBA skills. I need to add alarms to an instance or database when a query, stored procedure, or SSIS package hangs for longer than a few hours. I did not see anything in the security or maintenance drop down in SSMS.
Any assistance would be greatly appreciated!
Dave
The are no problems, only solutions. --John Lennon
June 23, 2024 at 1:10 pm
Thanks for posting your issue and hopefully someone will answer soon.
This is an automated bump to increase visibility of your question.
I don't believe such an alert exists. My recommendation would be to make an SQL Server Agent Job that checks for such things and schedule it to run on a regular basis. I would also have it save the information for a bit of "proof" history.
A good start would be to search for "WhoIsActive" by Adam Machanic and go from there. Brent Ozar also has some similar code in his "Blitz" offerings.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 24, 2024 at 3:47 pm
A few years ago I created a job that sent me an email if any job ran 'X' times longer than it's average run time. Maybe that would work ?
I lost the code when I changed jobs, so can't post it.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy