ALTER DATABASE [DBName] SET SINGLE_USER WITH ROLLBACK IMMEDIATE
While the database should "immediately" return to multi-user after killing the other connections, you may find that it does not; and now users are unable to connect. Therefore, after executing this statement, you may need to execute another: