Alternatively, as suggested by Pinal Dave in his blog post, you could set the server to Single User Mode and back to Multi User Mode as follows. This method is very quick and neat, however, this will kill ALL connections to the database, not just those from domain users:select 'Kill ' + cast(spid as varchar) from sys.sysprocesseswhere loginame like 'DOMAIN\%'
Credit for Pinal Dave blog post: http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/USE master;GOALTER DATABASE AdventureWorksSET SINGLE_USERWITH ROLLBACK IMMEDIATE;ALTER DATABASE AdventureWorksSET MULTI_USER;GO