EXEC sp_attach_single_file_db @dbname = 'qq', 
   @physname = 'c:\qq.mdf'
或者用企业管理器恢复