Home Forums Article Discussions Article Discussions by Author Discuss content posted by Abhijit Kill Active connections RE: Kill Active connections
tflooder
Valued Member
Points: 60
More actions
October 21, 2009 at 5:33 pm
#1069194
use master
alter database [db_name] set offline with rollback immediate
I will try this next time I replace a test DB with a copy of production. Makes sense.
Does a restore automatically set the database online? I'll test when I try it.