Restore the SQL database from the backup file

Source: Internet
Author: User

The following error occurs during manual recovery:

The backup set holds a backup of a database other than the existing database. Restore database is terminating abnormally

Use force reply. From the swlicense. Bak file, restore the data and table structure to a new database swlicmanitenance.

 

Restore filelistonly from disk = 'd: \ panshengbo \ swlicense. Bak'

Restore database swlicmaintenance from disk = 'd: \ panshengbo \ swlicense. Bak'
With
Move 'swlicense 'to 'C: \ Program Files \ Microsoft SQL Server \ mssql10_50.mssql2008r2 \ MSSQL \ data \ swlicmaintenance. MDF ',
Move 'swlicense _ log' to 'C: \ Program Files \ Microsoft SQL Server \ mssql10_50.mssql2008r2 \ MSSQL \ data \ swlicmaintenance_log.ldf'

Backup: Backup   Database Swlicmaintenance
To   Disk   =   ' D: \ swlicmaintenance. Bak '  
Restore Filelistonly
From   Disk   =   ' D: \ swlicmaintenance. Bak '

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.