Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 HELP! - Corrupt BAK file - What are my options?
 Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

kleinmi
Starting Member

9 Posts

Posted - 07/21/2003 :  15:55:04  Show Profile  Reply with Quote
Hey guys,

I am getting an inconsistency error when I try to restore one of my SQL server back ups.

I know there are some applications that can generate SQL scripts from the bak file.. but are atleast $500.00

do you guys know what I can use to read the file?

Any help would be GREAT!

tkizer
Almighty SQL Goddess

USA
38200 Posts

Posted - 07/21/2003 :  16:03:07  Show Profile  Visit tkizer's Homepage  Reply with Quote
I don't know of any tools that can read the bak file. The tool that you mentioned for 500 bucks is probably Log Explorer by Lumigent, but it reads the transaction log and not the bak file. If your backup is corrupt, then you will need to go to the next newest backup file. Hopefully you have transaction log backups so that you can then restore the logs on top of this other backup and not lose so much data. Have you tried restoring the next newest backup yet? Do you have transaction log backups?

Tara
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 07/21/2003 :  16:26:42  Show Profile  Reply with Quote
What's the excact error you're getting, and when was the last time you restored a back up?



Brett

8-)
Go to Top of Page

kleinmi
Starting Member

9 Posts

Posted - 07/21/2003 :  17:02:56  Show Profile  Reply with Quote
I have restored several databases on this server (drive failure).

They all worked except for about 4 databases.

The error I get is:

"An internal consistency error occurred. Contact Technical Support for assistance. RESTORE DATABASE is terminating abnormally."





Go to Top of Page

tkizer
Almighty SQL Goddess

USA
38200 Posts

Posted - 07/21/2003 :  17:08:30  Show Profile  Visit tkizer's Homepage  Reply with Quote
Your database backup file is bad. You will not be able to use it. You will need to get an older backup from tape (assuming that's where you put the older backups). If you have transaction log backups, you might not lose that much data. Do you have transaction log backups? Do you have an older database backup file or just the one that is bad?

Tara
Go to Top of Page

Stoad
Freaky Yak Linguist

*
1983 Posts

Posted - 07/21/2003 :  17:10:22  Show Profile  Visit Stoad's Homepage  Reply with Quote
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=ONw55ancCHA.2424%40tkmsftngp09

- Vit
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
38200 Posts

Posted - 07/21/2003 :  17:12:54  Show Profile  Visit tkizer's Homepage  Reply with Quote
quote:

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=ONw55ancCHA.2424%40tkmsftngp09

- Vit



Well that's assuming that kleinmi has the MDF file though. I wouldn't do what the article is suggesting though. So if you have the MDF file, you can simply run sp_attach_single_file_db. Please see SQL Server Books Online for the specifics.

Tara
Go to Top of Page

kleinmi
Starting Member

9 Posts

Posted - 07/21/2003 :  17:23:30  Show Profile  Reply with Quote
i do not have a transaction log back up. the last 3 back ups all give the same error.

Go to Top of Page

tkizer
Almighty SQL Goddess

USA
38200 Posts

Posted - 07/21/2003 :  17:27:31  Show Profile  Visit tkizer's Homepage  Reply with Quote
The job that runs the backups should have showed failure if the file was inconsistent. I have received this error numerous times in our development environment. I believe that the problem has to do with NetBackup, at least in my case. I always had to delete the file and then run the backup. But the point is that your job should have showed failure. So check the job history and find out when the last successful backup was and then restore that file.

Tara
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
38200 Posts

Posted - 07/21/2003 :  17:29:38  Show Profile  Visit tkizer's Homepage  Reply with Quote
Do you have the MDF file? If so, you may still be in luck. See sp_attach_single_file_db in BOL.

If none of these options work, then you most likely have lost the database. At this point, I would contact MS to see if there is anything that can be done. I am sure that it would be costly though.

Tara
Go to Top of Page

nr
SQLTeam MVY

United Kingdom
12543 Posts

Posted - 07/21/2003 :  18:27:46  Show Profile  Visit nr's Homepage  Reply with Quote
It doesn't help now but

"Your data is only as secure as your last restored backup".

i.e. you can never tell whether a backup is good without restoring it which is why in a production system you need to run test restores as part of the backjup strategy to make sure that all your backups are not worthless.
Surprising how may companies assume that just because a 3rd party backup utility says it is successful that they have a restorable backup.

I'm afraid if oyu don't have a good backup nor an mdf that you are stuck.
You can send the backup to microsoft and ask them to see what they can recover but I don't know how much that will cost.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 07/22/2003 :  09:30:14  Show Profile  Reply with Quote
I did not know that...thanks Nigel...

I guess just having my contigency box (and restore logs and dumps) had added benefits I knew nothing about..

I guess with out a disaster box, creating a diff database or in another instance should be a matter of fact for a backup strategy.

Why isn't that outlined in any book I've read I wonder?

esp admin 911 (or did I miss that chapter?)



Brett

8-)
Go to Top of Page

prett
Posting Yak Master

USA
212 Posts

Posted - 07/08/2015 :  02:45:03  Show Profile  Visit prett's Homepage  Reply with Quote
I know this thread is very old and my reply is no any relation with kleinmi because he has already left the thread but still I would like to help new users who are searching SQL backup recovery tool to restore database from corrupt SQL backup and reached this thread by any reference.

Recently I heart about Stellar SQL backup recovery tool in DBA meetup that claims it can repair corrupt SQL backup file without any modification. I have not tested this tool yet because don't have corrupt file.

If anyone facing SQL backup corruption issue then can give a try to this tool.

http://www.stellarinfo.com/database-recovery/sql-backup.php
Go to Top of Page
   Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000