Hi Friends
What is the use of DBCC commands in SQL ?
DBCC commands in SQL
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
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted Nov 7, 2012, 6:59 AM EST
DBCC commands which are that are act as Database Console Command for SQL SERVER.
DBCC command takes input parameters and return values.
We use the DBCC Commands to check Consistency of database.
This use for maintains, validation tasks and status checks.
For Example:
DBCC CHECKDB
To ensure tables in database and indexes are correctly related.
There is all command :
http://msdn.microsoft.com/en-us/library/ms188796.aspx
Satyapriya NayakRank #47 · 31.5K reputationPosted Nov 7, 2012, 4:16 PM 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.
http://msdn.microsoft.com/en-us/library/aa258281%28v=sql.80%29.aspx
Thanks