SQL: Generate Kill Command
This handy SQL query list all connections to an mssql database and a corresponding kill command. The kill command will just be printed, not executed.
DECLARE @database_name NVARCHAR(255);
SET @database_name = 'name of database'
SELECT
DB_NAME(dbi...
thim.hashnode.dev1 min read