Solved

Probably corrupted MDF ans/or LFD

Posted on 2003-11-14
9
327 Views
Last Modified: 2012-06-27
A customer of mine did power-off its Desktop PC without closing Windows (ME). After restart, an important database (account data of its job) under MSQL Desktop Edition (SQL 7) got unaccessible.

Trial 1) I tried to attach the mdf/ldf files, getting an error and aborting the procedure
Trial 2) I tried to create a new database with the same name and the same filegroup properties. I stopped SQL Server and overwrote the files. This way I could see a grey database Icon with the "(Suspect)" postfix. No items could be browsed for that database.
Trial 3) Then I tried to apply the procedures I found in the Microsoft documentation (sp_resetstatus, DBCC CHECKDB ALLOW_DATA_LOSS...) without any result.

Could you help or suggest something?
Thanks
0
Comment
Question by:francotiveron
  • 5
  • 4
9 Comments
 
LVL 34

Expert Comment

by:arbert
ID: 9750042
You have a backup right--restore it.

You should never use sp_resetstatus when you know the data is probably corrupt or actually suspect.
0
 

Author Comment

by:francotiveron
ID: 9750764
I have only the MDF and LDF.
0
 
LVL 34

Expert Comment

by:arbert
ID: 9750859
hmmm, if the MDF and LDF are corrupt, there isn't too much you can do.  Probably a good time to plan future backups....
0
 
LVL 34

Accepted Solution

by:
arbert earned 250 total points
ID: 9808673
francotiveron, what's the status on this question???
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:francotiveron
ID: 9810977
This is what I hated. My customer started to reinput data starting from last backup (three weeks!)
0
 

Author Comment

by:francotiveron
ID: 9811005
Probably it is already known, but I tried the demo of a recovery tool: MSSQLRecovery (www.officerevocery.com/mssql/)
0
 

Author Comment

by:francotiveron
ID: 9811009
0
 
LVL 34

Expert Comment

by:arbert
ID: 9811037
So if the client is reinputting data I take it the product wasn't that great????
0
 

Author Comment

by:francotiveron
ID: 9811474
The customer preferred to reinput date because the product costs 499 $. The demo version reads the MDF file and gives a lot of sql files with data. The first rows contain true data, but the remaining contain "Demo" fixed string, so it is not possible to evaluate if that tool recover all data from corrupted DB. Anyway, it seems good.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Help with SQL Query 23 39
Access recordset not updateable 8 39
search for a string in all tables 4 15
Convert int to military time 8 20
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now