Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL server error The media set has 2 media families but only 1 are provided

Tags:

SQL server error The media set has 2 media families but only 1 are provided. I am trying to restore a 200 MB database into SQL 2008 and I am getting this error

"The media set has 2 media families but only 1 are provided. All members must be provided

enter image description here

like image 977
Azeem ahmad Avatar asked Apr 29 '15 12:04

Azeem ahmad


People also ask

What is media set in SQL Server?

Media sets can be mirrored to protect against a damaged media volume (a tape or disk file). For more information, see Mirrored Backup Media Sets (SQL Server). Compressed and uncompressed backups can't occur together in a media set. Any edition of SQL Server 2008 or later can read compressed backups.


2 Answers

You are getting this error because your database backup was striped and the backup stream was split into two destination files. You are trying to restore from a single backup file. You need both files to restore your database.

For more information on the error, refer here

like image 92
ughai Avatar answered Oct 08 '22 14:10

ughai


its kinda late but here's how I managed to fix this issue.

It seems that you have left another location while doing the back-up. Delete the other location and keep your specified one.

enter image description here

Putting two locations would stripe the file into two parts, meaning you need two files to complete the restoration.

Hope this helps. Cheers!

like image 37
Noobie Avatar answered Oct 08 '22 12:10

Noobie