xxxxxxxxxx
In SQL Server Management Studio Object Explorer, connect to the instance of the SQL Server Database Engine and then expand the instance. Expand Databases, and select the name of the user database you want to detach.
Right-click the database name, point to Tasks, and then select Detach.