Home Guides Glossary

Back up and Restore SQL Server Databases

Some of the information in this article is advanced material we make available as a courtesy. Please be advised that you are responsible for properly following the procedures below. Customer Support cannot assist with these topics.

The following procedures will work for both MSDE and MS SQL Server databases.

To Back Up Databases

  1. Remote desktop to your Windows dedicated server.
  2. Create a backup folder in a convenient location, like the one below:
    C:database_backup
  3. From the command line, run the following:
    osql -E
  4. At the numbered prompts, run the following commands to return the names of all existing databases:
    SELECT name FROM master.dbo.sysdatabases WHERE DBID > 4
    GO
  5. For each database you want to back up, run the following two commands, substituting the appropriate database name, database backup name, and backup folder:
    backup database [database name] to disk = 'c:[backup folder][database backup name].bak'
    GO

The backup database files now reside in the specified folder.

To Restore Databases

  1. Remote desktop to your Windows dedicated server.
  2. From the command line, run the following:
    osql -E
  3. At the numbered prompts, run the following commands, substituting the appropriate database name, database backup name, and backup folder:
    restore database [database name] from disk = 'c:[backup folder][database backup name].bak' with replace, file=1, nounload, stats=10
    GO

Domain Registration

Pay less for website domain names. Register your own .com, .net or .org for as low as $10.18 per year. We have everything you need to get online with your new domain.

Website Builder

Build an amazing website in just under an hour with Website Builder. Take advantage of designs created just for your industry and then customize them to reflect your one-of-a-kind idea.

Website Security

Protect your website and keep customers safe. Your comprehensive Website Security solution. Get peace of mind by securing your websites.

cPanel Hosting

Everything needed to give your website the high-performance home it deserves.  Protect transactions and secure your customer's data with a SSL Certificate
Copyright © 2005 - 2024.  All rights reserved.  Privacy Policy