ALTER DATABASE database-name SET OFFLINE
ALTER DATABASE database-name SET ONLINE
ALTER DATABASE database-name SET OFFLINE WITH NO_WAIT
Advertisements