Disconnect MSSQL (T-SQL) connections by user name or database
This is a quick method of identifying and terminating the SQL connections of a specific user. This can be helpful if you need to script such a task (before a back-up perhaps). Simply adjust the…