July 27, 2010 at 3:07 am
My problem is quite simple. I want to drop database and before I do that I would like to disconnect all users from DB.
I've already tried putting database into offline state and everything went good except the fact that db files were left on hdd.
How can I disconnect all users, drop database (with db files)?
Thanks for reply in advance.
July 27, 2010 at 6:04 am
probably the easiest way is to to set it to single_user:
alter database emptyexample set single_user with rollback immediate
drop database emptyexample
Lowell
July 27, 2010 at 9:27 am
I like Lowell's advice. Set to single user, then remove.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply