1

What's the best strategy for integrity checks on large dbs? DBCC CHECKDB (DB Name) would probably take over 24 hours and the largest table, being 532GB, would probably take over 17 hours.

James Rhoat
  • 1,577
  • 4
  • 12
  • 32
user48020
  • 11
  • 1

1 Answers1

1

Based on your question it seems like this actually has not been run yet because you are using "probably".

However, there are two branches for this question:

  • Run the Integrity checks on a backup of the database.
    • Take a full database backup of the prod server
    • Restore the database on another server
    • Run consistency checks on the restored database
  • Break up the DBCC CHECKDB over multiple days.

It is NOT AN OPTION to run Consistency checks on a mirror database or on an availability group replica as a way of checking the principal or primary. Since these will be running on different I/O systems and corruptions do not propagate between servers. This will need to be run IN ADDITION.


Things to make CHECK DBCC run faster.


James Rhoat
  • 1,577
  • 4
  • 12
  • 32