Data World

SQL Server – Database Consistency Check DBCC CheckDB

Posted by Pramod Singla on March 13, 2017


Problem: How to check the consistency of a SQL Server database.

Solution:

DBCC checkdb WITH no_infomsgs, all_errormsgs;

  • This Command can put overhead on the database.

  • Normally schedule to run at off peak hours.

  • See the database consistency history report by right click the database>select Reports>Select Standard Reports>Select Database Consistency history

Figure 1: Database Consistency History

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: