Hi Friends
What is the use of DBCC commands?
DBCC commands
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Feb 25, 2012, 12:37 AM EST
DBCC stands for database consistency checker. We use these commands to check the consistency of the databases, i.e., maintenance, validation task and status checks.
E.g. DBCC CHECKDB - Ensures that tables in the db and the indexes are correctly linked.
DBCC CHECKALLOC - To check that all pages in a db are correctly allocated.
DBCC CHECKFILEGROUP - Checks all tables file group for any damage.
Thanks
Jignesh TrivediRank #16 · 50.3K reputationPosted Feb 26, 2012, 5:37 PM EST
The Transact-SQL programming language provides DBCC statements that act as Database Console Commands for SQL Server. These statements check the physical and logical consistency of a database. Many DBCC statements can fix detected problems.
please refer..
http://msdn.microsoft.com/en-us/library/aa258281%28v=sql.80%29.aspx
contain all DBCC command.
hope this help.