You can't restore from an MDF. You can however attach the MDF back to your SQL Server instance using the sp_attach_db_single_file system stored procedure. Check Books OnLine for the full syntax.
Last Wiki Answer Submitted: November 7, 2008 7:33 pm by Denny Cherry64,505 pts.
All Answer Wiki Contributors: Denny Cherry64,505 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
you can do it by stopping SQL service from SERVICES AND APPLICATIONS.
first create the database with same name, than after stopping sql service, just simply copy paste the MDF and LDF files from your backup.
This won’t always work, as the sizes will be different from the sizes of the files that are listed in the master database. Not to mention why would you stop the instance to do something which you don’t have to take an outage to complete?
you can do it by stopping SQL service from SERVICES AND APPLICATIONS.
first create the database with same name, than after stopping sql service, just simply copy paste the MDF and LDF files from your backup.
This won’t always work, as the sizes will be different from the sizes of the files that are listed in the master database. Not to mention why would you stop the instance to do something which you don’t have to take an outage to complete?
You may restore sql database thanks to following software
sql server fix
tool will save all sql tables, stores and so on inside new .sql file