The database backup problem media set has two media clusters, but only one

Source: Internet
Author: User

Today, when I backed up the database, I found a problem. I used to think it was a problem with SQL Server. At that time, I was busy.

Ignore it. Now I want to back up the database and find the same problem again. It's really troublesome. It's always around you.

The error occurs for a long time. Let's briefly describe the cause of the error.

System. Data. sqlclient. sqlerror: the media set has two media clusters, but only one

 

System. Data. sqlclient. sqlerror:
Media set has2
Media Clusters,However, only1
. All members must be provided.(Microsoft. sqlserver. SMO ),The error occurs because I did not remove the default data path when backing up the database.

The default value is not removed.C: \ Program Files \ Microsoft SQL Server \ mssql.1 \ MSSQL \ backup. BakAnd adds a new path

The result is backed up to two copies, but they are dependent on each other, and you cannot restore them successfully.

 

Solution:Remember to clear the original default path during Backup,

 

Add the path you want to back up.

 

 

Related Article

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.