All Products 
Username / Customer#
Password
Log In
 Hi,  |  Log Out
  • Site Search
  • Domain Search
  • WHOIS Domain Check
24/7 Support: (480) 505-8877
Hablamos Español
9 AM to 9 PM IST
7 days a week
Go Daddy Support

Search help articles, forums, and discussion groups

Restoring a SQL Server Database from BAK and MDF Files

Date Submitted: 2-21-2013

Using Microsoft® Database Publishing Wizard (DPW) you can restore a SQL Server database from a backup file (BAK) created outside the Control Panel in your hosting account or from an MDF file. For information on Database Publishing Wizard, see What are the Database Publishing Service and Database Publishing Wizard?

NOTE: We recommend you create SQL Server database backups through the Control Panel in your hosting account. For more information, see Backing Up SQL Server Databases.

To use DPW, you must locally install SQL Server Express and SQL Server Management Studio for the version of SQL Server you used to create the database.

The process to restore the database depends on which type of file you created.

BAK Files

To Restore a SQL Server Database from BAK Files

  1. The Connect to Server dialog box displays.
    If it does not display, from the File menu, select Connect Object Explorer.
  2. From Server Type, select Database Engine.
  3. Enter the required Server Name and Authentication information (if it does not auto-populate)

    NOTE: This is the information for your local install of SQL Server Express.

  4. Click Connect.
  5. Right-click the Databases folder, and then select New Database.
  6. Enter a Database Name, and then click OK.
  7. Open the Databases folder to find your new database.
  8. Right-click your new database, and then, from the Tasks menu, select Restore, and then Database.
  9. Select From Device, and then click ... to browse.
  10. Click Add, navigate to and select your BAK file, and then click OK.
  11. Select your BAK file.
  12. Click Options on the left, and then select Overwrite the existing database.
  13. Click OK to execute the restore.
  14. Verify the contents of your database, which is now active on your local machine.
  15. Publish your database using the Microsoft Database Publishing Wizard. For more information, see Publishing a Database Using the Database Publishing Wizard.

    NOTE: You cannot use DPW with Microsoft SQL Server 2008 Databases. However, you can potentially restore SQL Server 2008 BAK files into SQL Server 2005 databases.

MDF Files

To Restore a SQL Server Database from MDF Files

  1. The Connect to Server dialog box displays.
    If it does not display, from the File menu, select Connect Object Explorer.
  2. From Server Type, select Database Engine.
  3. Enter the required Server Name and Authentication information (if it does not auto-populate)

    NOTE: This is the information for your local install of SQL Server Express.

  4. Click Connect.
  5. Right-click the Databases folder, and then select Attach.
  6. Click Add, navigate to and select the MDF file you want to use, and then click OK twice.
  7. Verify the contents of your database, which is now active on your local machine.
  8. Publish your database using the Microsoft Database Publishing Wizard. For more information, see Publishing a Database Using the Database Publishing Wizard.

    NOTE: You cannot use DPW with Microsoft SQL Server 2008 Databases. However, you can potentially restore SQL Server 2008 BAK files into SQL Server 2005 databases.

Rate This Article:
Related Topics:

Have a question about the content of this article?