Kill all sleeping processes in SQL Server

The below code can be used to Kill all the processes to SQL Server Database. The code can be used in situations where changes to the database can not be done if any process is running on database such as renaming database .

Continue reading “Kill all sleeping processes in SQL Server”