views:

316

answers:

1

I have a backup file taken from a SQL Server 2000 database and I'm trying to restore it to a 2008 database. However, I'm getting this error:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) The media family on device 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Backup\customers.bak' is incorrectly formed. SQL Server cannot process this media family. RESTORE HEADERONLY is terminating abnormally. (Microsoft SQL Server, Error: 3241)

I am the one who originally took the backup (years ago). It was a hosted SQL Server. If I remember correctly, I got the backup using some sort of online "control panel"

+2  A: 

SQL 2000 SP4 database can be upgraded on-the-fly to SQL 2008 (including restore-upgrade). See Version and Edition Upgrades. If you get that message most likely the media is corrupted.

Remus Rusanu
What if the SQL 2000 was not SP4? I don't know what SP it was.
Sarit
Pre SP4 you need to upgrade it to the SP4 version first, by restoring it on a SQL 2000 SP4. SQL 2005 supports upgrade from SQL 7, so you can also try to restore it first on SQL 2005 (even Express), then on 2008. But as I say, most likely the backup is corrupted, otherwise you'd get a more specific error message about the supported version.
Remus Rusanu