How to kill all inactive sessions from a specific user in SQL Server
The SQL statement below will kill all sessions from a specific user that were not active in the last hour. Of course, change 'my_user' with your preferred user ID. If you want, you can also uncomment…
Read more →