Disabled SA user is listed as logged in
This is because some &quot;system&quot; session are showing &quot;sa&quot; as the username.
I think you can add a
where is_user_process = 1

in your query to exclude those system session and you should no longer see &quot;sa&quot; as a connected user.