Description
sp_WhoIsActive is a stored procedure for Microsoft SQL Server that monitors activity on the server. The README calls it a comprehensive activity monitoring procedure and says it works on all SQL Server versions from 2005 through 2022, as well as on Azure SQL Database. The project is now versioned and maintained on GitHub, and the license is GPLv3. The documentation remains on the author's site. To install it, you download sp_WhoIsActive.sql from the repository root, open it in SQL Server Management Studio and run it. The script installs into the database of the current session, and the README suggests switching to master if you want the procedure available from every database on the instance. For older servers, the README says to use the script in the 2019 folder for SQL Server 2012 to 2019, and the 2008 folder for 2008 or earlier. Version numbers take the form vAABB.YYYYMMDD, showing the minimum and maximum supported SQL Server years and the release date. The author asks for pull requests instead of forks when people want to enhance it.…
Highlights
- Activity monitoring stored procedure for SQL Server
- Works on SQL Server 2005 to 2022 and Azure SQL Database
- Version folders for older servers
- Single script to install
- GPLv3 license
Ratings & Reviews
No ratings yet
Be the first to rate SP Whoisactive.
People also visit
PG Activity
pg_activity is a top like application for PostgreSQL server activity monitoring

azure-sql-database
Expert knowledge for Azure SQL Database development including troubleshooting
Sql-Server-DBA-Toolbox
A box of tricks (SQL scripts) that I've built up over many years for…
Osquery
SQL powered operating system instrumentation, monitoring, and analytics
SP Whoisactive FAQ
What is sp_WhoIsActive?
A stored procedure for SQL Server that monitors activity on the server.
Which versions does it support?
SQL Server 2005 through 2022 and Azure SQL Database, according to the README.
How do I install it?
Download sp_WhoIsActive.sql from the repository root and run it in SQL Server Management Studio. Switch the database to master to make it available across the instance.
What about older SQL Server versions?
Use the sp_WhoIsActive.sql from the 2019 folder for SQL Server 2012 to 2019, or the 2008 folder for 2008 or earlier.
What are the best SP Whoisactive alternatives?
Popular alternatives to SP Whoisactive include PG Activity, SQLPro for MSSQL and Dbatools. See all SP Whoisactive alternatives




