7

I recently recovered a database from a hard-drive failure using DBCC CHECKDB WITH REPAIR ALOW DATA LOSS.

Now I can select records from a table-valued function to retrieve sales records, but using a GROUP BY on the same data causes an "internal inconsistency" error.

Running DBCC CHECKDB returns zero inconsistency errors.

I have run everything I know to detect any torn pages, but have found none.

How do I find the torn page or force a rebuild?

Nick Chammas
  • 14,810
  • 17
  • 76
  • 124
Petrus Theron
  • 303
  • 2
  • 3
  • 9

2 Answers2

6

Basically, you have to restore. Do you have a backup?

While this is restoring, read "Misconceptions around database repair" and the rest of Paul Randal's site.

Harsh, but true.

Jack Douglas
  • 40,517
  • 16
  • 106
  • 178
gbn
  • 70,237
  • 8
  • 167
  • 244
3

You should be able to look at the page itself using DBCC PAGE and see if the page is still corrupt and what's going on. What version of SQL Server was the backup created with?

mrdenny
  • 27,106
  • 2
  • 44
  • 81