SQL SERVER – Types of DBCC Commands When Used as Database Console Commands

Just a day ago, while discussing some SQL issues with one of the Sr. Database Administrator in India, we end up discussing DBCC as Database Console Commands when used as T-SQL. We both tried to remember what are the types of DBCC as Database Console Commands and could not come up with more than two types, however we both knew there are four.

When the conversation was over, I looked up MSDN for the types of the DBCC. I found following documentation here. There are four types of the Database Console Commands.

Maintenance

Maintenance tasks on a database, index, or filegroup.

Examples:

DBCC INPUTBUFFER

DBCC SHOWCONTIG

Miscellaneous

Miscellaneous tasks such as enabling trace flags or removing a DLL from memory.

Examples:

DBCC CHECKCATALOG

DBCC CHECKIDENT

Informational

Tasks that gather and display various types of information.

Examples:

DBCC DROPCLEANBUFFERS

DBCC SHRINKFILE

Validation

Validation operations on a database, table, index, catalog, filegroup, or allocation of database pages.

Examples:

DBCC dllname (FREE)

DBCC TRACEOFF

Reference : Pinal Dave (https://blog.sqlauthority.com), BOL – DBCC

SQL Server DBCC
Previous Post
SQL SERVER – 2005 – Fix : Error : Msg 7411, Level 16, State 1 Server is not configured for RPC
Next Post
SQL SERVER – 2005 – Limitation of Online Index Rebuld Operation

Related Posts

5 Comments. Leave new

  • Informational and Maintenance Category Examples are mixed up. I know its just a typing error. Nice Info regarding DBCC.

    Reply
  • hi,
    ur examples for miscellaneous and validation are interchanged. plz check it out

    Reply
  • hi,
    Could i get a complete list of all available DBCC commands in SQL Server.

    Reply
  • hi pinal,
    i found the information useful, however i checked with the msdn page you hyperlinked, the dbcc commands are listed incorrectly.
    Hope you checkout.

    Reply

Leave a Reply