Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

corrupted mdf file Expand / Collapse
Author
Message
Posted Tuesday, March 15, 2011 3:29 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, April 03, 2014 12:44 PM
Points: 36, Visits: 108
hello: i was given a corrupted mdf file, the server the database (sql 2000) crashed and the only file recovered was this .mdf file. I have tried as many of the options that i can find, and still cannot get this database recovered. downloaded several of the programs that claim to be able to recover mdf files and none work.. This latest gives me the following error:SQL Server detected a logical consistency-based I/O error: torn page (expected signature: 0xaaaaaaaa; actual signature: 0xd8b4c0f2). It occurred during a read of page (0:0) in database ID 0 at offset 0000000000000000 in file 'C:\DBIO\testy.mdf'. Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.

I created a new database (sql 2008 r2) since I do not have sql 2000 anywhere. renamed the mdf file and then renamed the corrupted one to the new name and restarted. This then brings up the db in recovery_pending mode and I cannot get it out of that mode. Tried setting it to emergency mode, no luck. Is there anyway for me to recover this db?

No there were no backups of this database at all, and yes, i completely agree that a backup strategy is needed, but i'm just the lucky recipient of the issue :)
thank you for any help!
Post #1078689
Posted Tuesday, March 15, 2011 4:32 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 4:42 PM
Points: 41,516, Visits: 34,431
Irreparable, nothing that can be done. The file header is damaged, SQL cannot open that file. Since it's the primary file of the database, SQL can't open the DB at all


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1078712
Posted Thursday, April 14, 2011 5:37 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: 2 days ago @ 12:44 AM
Points: 102, Visits: 1,165
If your database (mdf) get corrupt then you can recover it by updated backup..This is the best way to get back all your precious data. The another way to recover corrupt mdf files is use of good sql database recovery software. I will suggest you to try Stellar Phoenix SQL Database Recovery because I have already use this software & recover my database in 3 easy steps. First check its demo version from the site: http://www.stellarsqldatabaserecovery.com/
If you find it useful then you can also purchase it.


SQL Database Recovery Expert
Post #1093417
Posted Saturday, April 14, 2012 4:10 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, April 14, 2012 4:59 AM
Points: 2, Visits: 6
SQL Database backup should be created and used in these corruption situations but as you mentioned you have not created any backup then you can try for some recovery tool that can help you. As a Genuine SQL user, i would like to suggest you a troubleshooting tool that will solve your corruption issue surely because it helped me to come out of some corruption situations. You can get more information from http://www.sqldatabaserecovery.n.nu/
Post #1283609
Posted Sunday, June 24, 2012 2:40 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, June 24, 2012 2:27 AM
Points: 1, Visits: 1
As we all are familiar with the point that DBCC commands are not able to remove all the problems observed in stored mdf file. User can perform corrupt mdf fix function with the third party tool which can work efficiently in all corruption cases.
Post #1320335
Posted Tuesday, July 17, 2012 3:50 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, July 17, 2012 6:10 AM
Points: 1, Visits: 1
The MDF files of SQL database may get corrupt due to some problem in the database. If such a situation arises, the user can use the software which recovers the lost MDF file. But before choosing the software, make sure that it is efficient enough to recover the unique keys, primary keys, indexes, stored procedures, views etc from your corrupt MDF file. one of the software which i used before want to suggest you it is Kernel for SQL Database Repair you can download this software from here http://www.restoresqldatabase.org/
Post #1330609
Posted Sunday, August 12, 2012 9:33 PM


Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, August 16, 2012 5:28 AM
Points: 2, Visits: 4
Yes, there are some data recovery software available for SQL data recovery. You can recover your mdf file easily.


Lost data on your computer? Accidentally deleted files but want to get them back? Formatted the hard drive withou backing up your data? Don't worry, data recovery software can help you out. http://www.any-data-recovery.com
Post #1343960
Posted Saturday, August 18, 2012 6:56 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, August 18, 2012 6:52 AM
Points: 1, Visits: 0
Ukon (3/15/2011)
hello: i was given a corrupted mdf file, the server the database (sql 2000) crashed and the only file recovered was this .mdf file. I have tried as many of the options that i can find, and still cannot get this database recovered. downloaded several of the programs that claim to be able to recover mdf files and none work.. This latest gives me the following error:SQL Server detected a logical consistency-based I/O error: torn page (expected signature: 0xaaaaaaaa; actual signature: 0xd8b4c0f2). It occurred during a read of page (0:0) in database ID 0 at offset 0000000000000000 in file 'C:\DBIO\testy.mdf'. Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.

I created a new database (sql 2008 r2) since I do not have sql 2000 anywhere. renamed the mdf file and then renamed the corrupted one to the new name and restarted. This then brings up the db in recovery_pending mode and I cannot get it out of that mode. Tried setting it to emergency mode, no luck. Is there anyway for me to recover this db?

No there were no backups of this database at all, and yes, i completely agree that a backup strategy is needed, but i'm just the lucky recipient of the issue :)
thank you for any help!


If your SQL database has gone damaged, then the way to recover database goes through a backup. If you have a recent backup of the database elements, then recovery is possible. If you lack these, then you shall have to opt for a professional sql database recovery software.

You can read more about this on: http://sqldatabase-recovery.com
Post #1346842
Posted Sunday, November 25, 2012 12:06 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, November 25, 2012 12:01 AM
Points: 1, Visits: 4
zacharys (8/12/2012)
Yes, there are some data recovery software available for SQL data recovery. You can recover your mdf file easily.


Agree, a good data recovery software can be used for SQL data recovery. You can try to recover corrupted mdf file with data recovery software.


Need file recovery? Or hard drive data recovery software?
Recover deleted files Quickly and Easily http://www.asoftech.com/adr/
Post #1388374
Posted Monday, November 26, 2012 10:13 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: 2 days ago @ 2:10 PM
Points: 137, Visits: 585
Sorry for the "Captain Obvious" fly-by but...

If you have the database at a point where it's barking about running DBCC CHECKDB, have you given that a shot? Let DBCC put the pieces together if it can. If it can't, well, you may be out of luck.

Regarding the "recovery software" I'd avoid getting my hopes up. I'm no expert but I believe most of this type of software is "file recovery" not "database recovery" so simply having a [copy] of a corrupted file won't be enough - you'll need to give the software access to the physical box (or drive) that crashed (read: the original drive will need to be available). Good luck and godspeed.

<my two cents>
If the database was on a server that is [several versions] out of mainstream support (did I get that math right? 2000, 2005, 2008, 2008 R2, 2012) I'd consider this recovery exercise to be directly related to the decision not to upgrade [12-year-old] software. I'd report the database to be irreparable and irrecoverable since you have no backup. This jab is .:[NOT]:. directed at you, but at the decision-makers that allow this situation to happen. There. I'm done ranting now. My apologies to all the gentle readers of SQLServerCentral.com. This stuff just fires me up. I wish you the best of luck.
</my two cents>
Post #1388712
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse