Solved

RESTORE Error:  The media family on device 'd:\somepath\backupfileName is incorrectly formed

Posted on 2007-11-13
4
9,511 Views
Last Modified: 2008-02-01
HI,

I am getting this error when trying to restore and not sure why:

---------------------------
Microsoft SQL-DMO (ODBC SQLState: 42000)
---------------------------
The media family on device 'D:\Backups\DB_11_13_2007' is incorrectly formed. SQL Server cannot process this media family.
RESTORE DATABASE is terminating abnormally.
---------------------------
OK  
---------------------------

After this error, it then puts my database in this "loading" state in Enterprise Manager.  It acts if the DB is caught in the middle of restore or something.  Any help highly appreciated...

Any thoughts?

-ws
0
Comment
Question by:Westside2004
  • 2
4 Comments
 
LVL 35

Expert Comment

by:David Todd
ID: 20276491
Hi,

What is the SQL that you are trying to use, the code that gives this error?

Cheers
  David
0
 
LVL 6

Accepted Solution

by:
Spot_The_Cat earned 400 total points
ID: 20276561
Hi,

How are you trying to RESTORE the database and what's supposed to be in that backup file?

Also have you tried using
RESTORE HEADERONLY
RESTORE FILELISTONLY
RESTORE LABELONLY
and
RESTORE VERIFYONLY?

Finally - before you tried to perform the restore did you/could you back up the transaction log?

Spot
0
 
LVL 1

Author Comment

by:Westside2004
ID: 20277266
Hi,

@dtodd -  I am using SQL Server Enterprise Manager's GUI to do the restore, its basically wizard driven.

@Spot_The_Cat - The database says (restoring) next to it.   If I run the following code:

use "dbname"

I get this error:

Database 'dbname' cannot be opened. It is in the middle of a restore.

I have two harddrives on that machine, does it matter if the backup file is currently on the "D" drive as opposed to the "C" drive where sql server is actually installed?  I took a backup essentially of a database on a completely diff server, and I am trying to restore it here on this other machine.

-ws
0
 
LVL 35

Assisted Solution

by:David Todd
David Todd earned 100 total points
ID: 20277320
Hi,

Strongly suggest that you use the query editor and write it yourself, and use some of the info that Spot has given you, ie
RESTORE HEADERONLY
RESTORE FILELISTONLY

to show what is in the backup and where it came from and all that.

Regards
  David
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Attaching Database Failed ? 3 42
Help Required 3 96
Query Help - MSSQL - Averages 5 27
sql server service accounts 4 23
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question