patternsqlMinor
SQL Server Internal Inconsistency on GROUP BY
Viewed 0 times
groupserversqlinconsistencyinternal
Problem
I recently recovered a database from a hard-drive failure using
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?
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?
Solution
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.
While this is restoring, read "Misconceptions around database repair" and the rest of Paul Randal's site.
Harsh, but true.
Context
StackExchange Database Administrators Q#5258, answer score: 6
Revisions (0)
No revisions yet.