I had some errors in my dbcc checkdb output. Can I safely run this again with the repair_allow_data_loss option? What does this do?
I had some errors in my dbcc checkdb output. Can I safely run this again with the repair_allow_data_loss option? What does this do?
stolen from SQLTeam.com but;
1) I strongly advise not running repair if at all possible. The REPAIR_ALLOW_DATA_LOSS option is deliberately named that because it usually requires deleting data to obtain structural consistency of the database. Its far better to try to understand what the errors mean and the consequences of running repair are. The latest BOL update has full information for all errors that CHECKDB returns, including what repair will do. You should also strive to work out why these errors occured.
2) Running repair should be the last thing tried to recover from errors. Its always better to recover using up-to-date backups and/or extracting as much data as possible before running repair/restoring.
I'd recommend reading Paul Randal's blog post that covers REPAIR_ALLOW_DATA_LOSS and what it does:
No one has followed this question yet.