The best way is always with T-SQL. Check BOL for sp_attach_db and sp_detach_db. To detach the db use sp_detach_db Dbname, then move the data files or what ever you want, and then use sp_attach_db with the name of the db, or a new name, and the complete path of all the data files.