You are here:Home » tsql » Kill All Threads – Kill All User Session – Kill All Processes

Kill All Threads – Kill All User Session – Kill All Processes

USE master;
GO
ALTER DATABASE AdventureWorks
SET SINGLE_USER
WITH ROLLBACK IMMEDIATE;
ALTER DATABASE AdventureWorks
SET MULTI_USER;
GO