Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

RESTORE difficulty

Posted on 2004-04-06
13
Medium Priority
?
3,418 Views
Last Modified: 2007-12-19
I am attempting to restore a backup from a machine I am not the DBA of and have basically no control over on to a new machine.

I have 1 full backup file containing a single backup and 1 differential backup file that contains many backups.

I attempted to restore the full backup using:

DBCC TRACEON(3111)
RESTORE DATABASE cha_sideA
      FROM DISK = 'F:\CUSTOMRPT\5-30-03\sideAful.bak'
      WITH NORECOVERY,
      MOVE 'cha_sideA_data0' TO 'D:\MICROSOFT SQL SERVER\MSSQL\DATA\cha_sida_Data0.MDF',
      MOVE 'cha_sideA_log0' TO 'D:\MICROSOFT SQL SERVER\MSSQL\DATA\cha_sida_Log0.MDF',
      REPLACE

And it ran for about half an hour then I got the error message:

Server: Msg 3241, Level 16, State 41, Line 1
The media family on device 'F:\CUSTOMRPT\5-30-03\sideAful.bak' is incorrectly formed. SQL Server cannot process this media family.
Server: Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.


Next I tried to only view the file list using:

RESTORE FILELISTONLY
      FROM DISK = 'F:\CUSTOMRPT\5-30-03\sideAful.bak'

and I can see the following:

cha_sideA_data0      D:\mssql\data\cha_sideA_data0.mdf      D      PRIMARY      18874368000      35184372080640
cha_sideA_log0      D:\mssql\data\cha_sideA_log0.ldf      L      NULL      3145728000      35184372080640





What am I missing?  What can I do to get this restore to work?



0
Comment
Question by:sifuhall
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
  • 3
13 Comments
 
LVL 26

Expert Comment

by:Hilaire
ID: 10766873
Did you check that SQL Server Versions / Service Packs are constisent on the two machines ?
0
 
LVL 1

Author Comment

by:sifuhall
ID: 10767133
They are not, and that is a good point.

The backup was created on SQL Server 7 with sp 3.

Ideally I would like to restore this on a SQL 2000 machine (this is why I tried DBCC TRACEON(3111) ).  But I have read about many problems with this.

I found a spare machine and installed SQL Server 7, downloaded and installed SP3, and ran the same command (but different drive letters because it is a different machine):

DBCC TRACEON (3111)
RESTORE DATABASE cha_sideA
      FROM DISK = 'e:\TEMP\sideAful.bak'
      WITH NORECOVERY,
            MOVE 'cha_sideA_data0' TO 'E:\temp\cha_sideA_Data0.MDF',
            MOVE 'cha_sideA_log0' TO 'E:\temp\cha_sideA_Log0.MDF',
      REPLACE

And on this machine (which is identical in SQL Server 7 SP3) I received:

Changed language setting to us_english.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
Server: Msg 3241, Level 16, State 109, Line 2
The media family on device 'e:\TEMP\sideAful.bak' is incorrectly formed. SQL Server cannot process this media family.
Server: Msg 3013, Level 16, State 1, Line 2
Backup or restore operation terminating abnormally.


Also, if I use:


RESTORE VERIFYONLY
FROM DISK = 'e:\TEMP\sideAful.bak'

I get:


Server: Msg 3624, Level 20, State 1, Line 1
 
Location:       bckcopy.cpp:683
Expression:       readsOutstanding == 0
SPID:             7
Process ID:       856

Connection Broken

0
 
LVL 26

Expert Comment

by:Hilaire
ID: 10767234
Does this apply to you ?

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q297104

They say you can get this message trying to restore a more than 4 gigs log file
0
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 
LVL 1

Author Comment

by:sifuhall
ID: 10767301
I found that, and there is why I added DBCC TRACEON (3111).

Are there any other options?  Any third party tools that can extract a SQL Server .bak file?
0
 
LVL 26

Expert Comment

by:Hilaire
ID: 10767320
Just noticed that the LOG file in the MOVE should be LDF rather than MDF

maybe SQL Server doesn't like the
      MOVE 'cha_sideA_log0' TO 'E:\temp\cha_sideA_Log0.MDF',

can you try with LDF ??

Hilaire
0
 
LVL 1

Author Comment

by:sifuhall
ID: 10767532
Hilaire, you have a very keen eye and thanks for all your help.

Unfortunately I just re-ran it with LDF in place of MDF for the log file and got the same error.  

Maybe the error occurs before it gets to the log?  Because I'm sure that would cause a problem as well.
0
 
LVL 26

Expert Comment

by:Hilaire
ID: 10767762
in your initial post there was another "typo "
the filenames were
"cha_sida" instead of "cha_sidea"

I don't know if filenames matter that much, but maybe it's worth a try.

Hopefully more experienced experts will join this thread
0
 
LVL 34

Expert Comment

by:arbert
ID: 10771893
Are you sure there were not any additional hotfixes applied to the 7.0 install?

What do you get if you run:

RESTORE HEADERONLY FROM DISK = 'e:\TEMP\sideAful.bak'


This should at least return the version that was used to perform the entire backup.  Are you positive the BAK file isn't corrupted?
0
 
LVL 1

Author Comment

by:sifuhall
ID: 10774056
The backup may be corrupt.

I'll will run RESTORE HEADERONLY and see how it goes.

Thanks for the help!
0
 
LVL 1

Author Comment

by:sifuhall
ID: 10774093
I just ran the RESTORE HEADERONLY and got this:


BackupName                                                                                                                        BackupDescription                                                                                                                                                                                                                                               BackupType ExpirationDate                                         Compressed Position DeviceType UserName                                                                                                                          ServerName                                                                                                                        DatabaseName                                                                                                                      DatabaseVersion DatabaseCreationDate                                   BackupSize             FirstLsn                    LastLsn                     CheckpointLsn               DifferentialBaseLsn         BackupStartDate                                        BackupFinishDate                                       SortOrder CodePage UnicodeLocaleId UnicodeComparisonStyle CompatibilityLevel SoftwareVendorId SoftwareVersionMajor SoftwareVersionMinor SoftwareVersionBuild MachineName                                                                                                                       Flags       BindingId                              RecoveryForkId                         Collation                                                                                                                        
--------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------- ------------------------------------------------------ ---------- -------- ---------- --------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------- --------------- ------------------------------------------------------ ---------------------- --------------------------- --------------------------- --------------------------- --------------------------- ------------------------------------------------------ ------------------------------------------------------ --------- -------- --------------- ---------------------- ------------------ ---------------- -------------------- -------------------- -------------------- --------------------------------------------------------------------------------------------------------------------------------- ----------- -------------------------------------- -------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------
*** INCOMPLETE ***  




So what does that mean and what can I do about it?
0
 
LVL 34

Accepted Solution

by:
arbert earned 1000 total points
ID: 10774455
I think I would go back to the source that you got the original BAK from.  Verify the version it came from and possibly see if you can get another backup--this one appears to possibly be corrupted if you can't even get the header info off.
0
 
LVL 1

Author Comment

by:sifuhall
ID: 10784062
Thanks for the help all.

It looks like there is nothing to save this backup.

0
 
LVL 34

Expert Comment

by:arbert
ID: 10785086
Close the question accordingly...
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

670 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