Use master
Go

Alter Database DD_ECM Set Single_User With RollBack Immediate


ALTER DATABASE DD_ECM -- put your database name here
   COLLATE Latin1_General_CI_AS   

   ALTER DATABASE DD_ECM
SET MULTI_USER;
GO