While working on some Great Posts™, I found a bit of odd behavior:
It appears to be a case sensitivity issue, because this works:
EXEC sp_WhoIsActive @find_block_leaders = 1, @sort_order = '[blocked_session_count] desc', @show_own_spid = 1;
Easily fixed by doing this:
WHEN LOWER(tokens.next_chunk) LIKE '%asc%' THEN ' ASC'
WHEN LOWER(tokens.next_chunk) LIKE '%desc%' THEN ' DESC'
While working on some Great Posts™, I found a bit of odd behavior:
It appears to be a case sensitivity issue, because this works:
EXEC sp_WhoIsActive @find_block_leaders = 1, @sort_order = '[blocked_session_count] desc', @show_own_spid = 1;
Easily fixed by doing this:
PR incoming!