Just another handy DBA script I find myself using on our warehouses.
- Set the @DatabaseOrServerWide parameter to either D or S depending on which processes you want to kill.
- Set the @DatabaseName parameter if using D with the database name you wish to focus on.
- Execute the script.
Note; the script executes any sa processes.
Thanks for looking.