The drop syntax is rarely useful since there is always someone using the database... and I always seem to forget the lines needed to set the database in single user mode.
This works:
ALTER DATABASE xxx SET SINGLE_USER WITH ROLLBACK IMMEDIATE
USE master
DROP DATABASE xxx
torsdag 15 maj 2008
Prenumerera på:
Kommentarer till inlägget (Atom)
Inga kommentarer:
Skicka en kommentar