The current version of sp_whoisactive reports wait duration as part of the text value in the wait_info column, which is human-oriented and unamenable to sorting, filtering, or any other automated, machine-based analysis. This is a request for a dedicated numeric column to store this important metric—wait_duration or wait_duration_ms (for milliseconds)—that shall be usable in MSSQL predicates and operators and shall facilitate quantitative lock analysis and automated gathering of wait statistics.
Whereas the numeric value of lock duration is already used internally inside sp_whoisactive, this request should not be hard to implement.
Proposal
The current version of
sp_whoisactive
reports wait duration as part of the text value in thewait_info
column, which is human-oriented and unamenable to sorting, filtering, or any other automated, machine-based analysis. This is a request for a dedicated numeric column to store this important metric—wait_duration
orwait_duration_ms
(for milliseconds)—that shall be usable in MSSQL predicates and operators and shall facilitate quantitative lock analysis and automated gathering of wait statistics.Whereas the numeric value of lock duration is already used internally inside
sp_whoisactive
, this request should not be hard to implement.Sample use