Skip to content

spBusyProcess helps identify and kill long running SQL Queries

License

Notifications You must be signed in to change notification settings

madereddy/spBusyProcess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

spBusyProcess

This script will catch all long running queries in user databases that run over the allotted @KillTime and kill them. It will also send email alerts to whoever is specified.

Getting Started

Run spBusyProcess against the master database to create the stored procedure.

Usage

Run EXEC spBusyProcess @KillTime = 1, @EmailAddress = 'admin@madereddy.com', @MailProfile = 'Default'

This command will kill any process running over a minute and email admin@madereddy.com with the mail profile Default.

Authors

Acknowledgments

The base of the script is from Aasim Abdullah. This is his website http://connectsql.blogspot.com

About

spBusyProcess helps identify and kill long running SQL Queries

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published