Website Domain Registration and Website Hosting - Host a Website Tonight
GoWebsite.com provides Domain Registration
Website Hosting, On-Line Shopping Carts, SEO
Blog Hosting, Email Accounts, Security Certificates,
Merchant Accounts & other Website Products.
Free setup! Speak with us anytime: 480-624-2500
Domain Registration

Restoring a SQL Server Database from BAK and MDF Files

Using Microsoft® Database Publishing Wizard (DPW) you can restore a SQL Server database from a backup file (BAK) created outside the Hosting Control Panel 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 Hosting Control Panel. 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 database you created must also allow Direct Database Access. For more information, see Creating MySQL or SQL Server Databases for Your Hosting Account.

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.

Domain Registration Domain Registration
Pay less for website domain names. Register your own .com, .net or .org for as low as $10.18 per year. Everything you need to get online - FREE with your domain.
Website Hosting Website Builder
For as little as $3.89 per month you can build your Website online with Website Builder using our easy to use professional templates.
Play Video - Demo
Shopping Cart Software Quick Shopping Cart
Build and run your own successful online store in minutes! You're just five easy steps away!
Play Video
Website Hosting Website Hosting
Everything you need to give your Website the high-performance home it deserves!  Protect transactions and customer data with a
SSL Certificate