Database Consistency Checker (DBCC)

Database Consistency Checker (DBCC) commands can give the DBA valuable insight into what’s going on inside SQL Server system. DBCC commands have powerful documented functions and many undocumented capabilities. Current DBCC commands are most useful for performance and troubleshooting exercises.

To learn about all the DBCC commands use the following script in the query analyzer in Management Studio.


DBCC TRACEON(2520)
DBCC HELP (‘?’)
GO

To learn about syntax of an individual DBCC command by running the following script in query analyzer.

DBCC HELP(<command>)
GO

Find more information on this command on Microsoft’s website: http://msdn.microsoft.com/en-us/library/ms176064.aspx

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