use master;exec sp_detach_db @dbname='data';exec sp_attach_single_file_db @dbname='data',@physname='E:\sqldata\data.mdf'