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
5 Comments. Leave new
Informational and Maintenance Category Examples are mixed up. I know its just a typing error. Nice Info regarding DBCC.
hi,
ur examples for miscellaneous and validation are interchanged. plz check it out
hi,
Could i get a complete list of all available DBCC commands in SQL Server.
In SQL Server help file, search for DBCC it will list out all the commands
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.