Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / March 2008

Tip: Looking for answers? Try searching our database.

.bak file is incorrectly formed error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roger Withnell - 06 Mar 2008 23:18 GMT
I create a backup file in Enterprise Manager on SQL Server 2000.  When I try
to restore this file using SQL Server 2005 Express on another machine, I get
the error "The media family on [my .bak file] is incorrectly formed.  SQL
Server cannot process this media family.  RESTORE HEADER is terminating
abnormally.  (Error 3241)."

This same process has worked successfully several times, the last time in
September 2007.  A backup file created in December 2006 will restore.  What
has changed to cause this error now and how can it be fixed?

Thanking you in anticipation.
Tibor Karaszi - 07 Mar 2008 07:38 GMT
I'd re-create the backup file, this should work. And, to be certain that the right steps are taken,
I'd do both the backup and the restore using TSQL commands instead of the GUI (BACKUP DTABASE and
RESTORE DATABASE).

Signature

Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi

>I create a backup file in Enterprise Manager on SQL Server 2000.  When I try
> to restore this file using SQL Server 2005 Express on another machine, I get
[quoted text clipped - 7 lines]
>
> Thanking you in anticipation.
Roger Withnell - 07 Mar 2008 09:27 GMT
Thanks for this, but it didn't fix the problem.

Process is:
1  Use DTS to make a copy of operational database into laptop1 (this has SQL
server 2000).  (Use of BACKUP DATABASE is prohibited on the operational
server, which is in a shared environment).
2  Make a backup with TSQL in laptop1  (I can restore from this backup in
laptop1 successfully).
3  Restore with this backup on laptop2 (running SQL Server 2005) using TSQL
gives the same error.

TSQL used is simply BACKUP/RESTORE DATABASE dbname TO/FROM DISK =
'C:\...\file.bak

This process has worked successfully in the past.  Last accomplished in
September 2007.

Thanking you in anticipation.

Roger

> I'd re-create the backup file, this should work. And, to be certain that the right steps are taken,
> I'd do both the backup and the restore using TSQL commands instead of the GUI (BACKUP DTABASE and
[quoted text clipped - 11 lines]
> >
> > Thanking you in anticipation.
Tibor Karaszi - 07 Mar 2008 10:08 GMT
I see. So you have a 2000 backup, which restores successfully on 2000. But the same backup file
generates below error if you try to restore on 2005:

"The media family on [my .bak file] is incorrectly formed.  SQL Server cannot process this media
family.  RESTORE HEADER is terminating abnormally.  (Error 3241)."

I would either assume that you don't really restore from the same file, or that some file copy
operation from laptop 1 to laptop 2 was unsuccessful. If you are 100% certain that it really is the
same file, then I'd open a case with MS Support.

Signature

Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi

> Thanks for this, but it didn't fix the problem.
>
[quoted text clipped - 33 lines]
>> >
>> > Thanking you in anticipation.
Greg D. Moore (Strider) - 07 Mar 2008 13:04 GMT
> Thanks for this, but it didn't fix the problem.
>
[quoted text clipped - 3 lines]
> server 2000).  (Use of BACKUP DATABASE is prohibited on the operational
> server, which is in a shared environment).

I'm curious why BACKUP DATABASE is prohibited.

In my experience DTS never quite got the "copy db" process down well.

> 2  Make a backup with TSQL in laptop1  (I can restore from this backup in
> laptop1 successfully).
> 3  Restore with this backup on laptop2 (running SQL Server 2005) using
> TSQL
> gives the same error.

Hmm, obvious questions, like "32 bit vs 64 bit?" or different language?

And compression on the 2nd laptop?

> TSQL used is simply BACKUP/RESTORE DATABASE dbname TO/FROM DISK =
> 'C:\...\file.bak
[quoted text clipped - 28 lines]
>> >
>> > Thanking you in anticipation.

Signature

Greg Moore
SQL Server DBA Consulting           Remote and Onsite available!
Email: sql  (at)  greenms.com          http://www.greenms.com/sqlserver.html

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.