exec sp_attach_single_file_db '数据库名', '文件路径到数据库名.mdf'