Solved

Probably corrupted MDF ans/or LFD

Posted on 2003-11-14
9
336 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 34

Accepted Solution

by:
arbert earned 250 total points
ID: 9808673
francotiveron, what's the status on this question???
0
 

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

679 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