Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Getting data from a corrupt SQL table

$
0
0

I've got a SQL table that has become corrupt due to failed storage. I fixed the storage issue, but unfortunately the lastsuccessful backup is from two months ago. The backups were failing, but my notifications were not firing for some reason. I've run dbcc checkdb and it said to use Rebuild_Allow_Data_Loss. I did that, but even that fails. It seems to hit the torn page and starts rolling back. I tried "Select * Into newTable", but it also starts rolling back after hitting the torn page. Is there any way I can just copy all of the good data out? If I can do that, I can combine it with the last good backup to make sure I have as much as possible.

I'm open to any ideas.

This is the output of DBCC CHECKDB (, REPAIR_ALLOW_DATA_LOSS)

Text
Nonqualified transactions are being rolled back. Estimated rollback completion: 100%.Msg 8939, Level 16,...

Viewing all articles
Browse latest Browse all 4871

Trending Articles