Solved

Probably corrupted MDF ans/or LFD

Posted on 2003-11-14
9
333 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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…
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how the fundamental information of how to create a table.

831 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