Look in the Books OnLine (Start>All Programs>Microsoft SQL Server>Documentation. Use the Index search.
For Detaching, look up DetachDB or sp_detachdb
For Take Offline, look up offline database and then click on the option for Setting Database Options.
While those entries show you how to do it in TSQL, they also explain what is happening.
-SQLBill
The following is part of my signature block and is only intended to be informational.
Posting advice: FAQ481-4875