MSSQL Offline Database

ALTER DATABASE databaseName 
 SET OFFLINE  -- OFFLINE, ONLINE