Detach Database in SQL Command

go
sp_detach_db DatabaseName
go

Comments