Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Kill All User Sessions

By ashokjanjani,

This script kills all the user sessions except its own.
This T-SQL block can be converted into a stored procedure by adding following lines in the begining of the script -

Create Proc Kill_Sessions

Total article views: 2604 | Views in the last 30 days: 5