How to back up and restore an MSSQL database

Source: Internet
Author: User
Some time ago, some users reported that an error occurred while restoring the MSSQL database. In fact, restoring the MSSQL database is relatively simple. The following describes the backup method and the corresponding restoration method, hoping to help some webmasters. 1. Back up the database and open the Enterprise Manager of Microsoft SQL Server.

Some time ago, some users reported that an error occurred while restoring the MSSQL database. In fact, restoring the MSSQL database is relatively simple. The following describes the backup method and the corresponding restoration method, hoping to help some webmasters. 1. Back up the database and open Microsoft SQL Server's Enterprise Manager (Enterprise Ma in English)

Some time ago, some users reported that an error occurred while restoring the MSSQL database. In fact, restoring the MSSQL database is relatively simple.

The following describes the backup method and the corresponding restoration method, hoping to help some webmasters.

I. Back up the database

Open the Enterprise Manager of Microsoft SQL Server (Enterprise Manager in English), expand the Server group, and expand the database, such:



Right-click the Database to be backed up. all tasks = Backup Database (Backup Database in English), for example:



Click Back up database to see:



Database: select the name of the Database to be backed up;

Name: Enter the backup file Name;

Backup: select Database-complete );

Destination: You can save the backup file to the current default path. To change the path, delete the current path and click Add )", select the storage path of the backup file.

Overwrite: If you save the backup file to the current default path, select Overwrite existing media. If you change the path, select "Append to media" or "Overwrite existing media.

Then, click "Option )",



After setting, click "OK" to start backup:



After the backup is completed,



Click "OK" to back up the database.

2. Restore the database

The databases backed up in the preceding method do not have any suffixes,



Open the Enterprise Manager of Microsoft SQL Server (Enterprise Manager in English), expand the Server group, and create a database:



Enter the name of the new database:



Click "Data file" to view the directory where the Data file is located and record it:



Click "Transaction log" to view the directory where the log file is located and record it:



Click "OK" to create a new database.

Right-click the newly created database and select all tasks = Restore database (Restore database ):



The general settings for database recovery are as follows:



Click "Options )":



After setting, click "OK" to restore the database:



After the database is restored, open the database table and you can see:



So far, the backup and recovery of the MSSQL database has been briefly introduced.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.