# amachanic/sp_whoisactive

sp_whoisactive

Repository: https://github.com/amachanic/sp_whoisactive
Canonical: https://ross.abutalabs.com/products/sp_whoisactive
Language: TSQL
License: GPL-3.0
License Family: copyleft
Topics: sql, sqlserver, monitoring
Last push: 2026-05-16T16:22:47+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 82, release rhythm 46, longevity 100
- inputs: {"age_days": 2593, "days_push": 109, "days_rel": 146, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1396, forks 340 (observed 2026-08-28T04:04:36.587564+00:00)

## What it is
sp_WhoIsActive is a comprehensive activity monitoring stored procedure for SQL Server 2005 through 2022 and Azure SQL DB. It is distributed as a T-SQL script that you install into a database to inspect currently running sessions and queries.

## Use cases
- see what queries are currently running on my sql server
- find long-running or blocking sessions in sql server
- troubleshoot slow queries and blocking chains
- monitor active sessions on azure sql database
- replace sp_who2 with a richer activity view
- identify which stored procedure is causing blocking

## When to choose
- you administer or develop against SQL Server or Azure SQL DB and need real-time session and query activity insight
- you want a free, community-maintained alternative to sp_who2 with richer detail

## When to avoid
- you use a database engine other than SQL Server
- you need historical or long-term metrics collection rather than point-in-time activity snapshots

## Facets
- artifact type: library
- maturity: active
- function: monitoring, database, developer-tools
- domain: databases, monitoring, developer-tools
- platform: windows, cli
- tags: sql-server, tsql, stored-procedure, activity-monitoring, dba-tools

## Member repositories
- amachanic/sp_whoisactive (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:36.587564+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:39:18.546805+00:00, confidence not recorded.
  - readme: https://github.com/amachanic/sp_whoisactive (fetched 2026-08-28T04:04:36.587564+00:00, sha b62cd7f2d813)
- Data as of 2026-08-30T08:39:29.467469+00:00.
