My SQL Server 2005 doesn\'t restore a backup because of active connections. How can I force it?
I prefer to do like this,
alter database set offline with rollback immediate
and then restore your database. after that,
alter database set online with rollback immediate