In SQL Server, the DBCC CHECKDB command is a critical tool for ensuring the integrity of your databases. It performs checks on the logical and physical integrity of all the objects in the specified database. Using DBCC CHECKDB with different options can tailor the scope and performance impact of these integrity checks. DBCC CHECKDB with No Options Running DBCC CHECKDB …

DBCC CHECKDB Options Explained Read more »

DBCC CHECKDB is a command in SQL Server that is used to check the integrity of a database. It performs a thorough analysis of all the objects in a database, including tables, indexes, and foreign keys, to ensure that they are structurally sound and do not have any corruption or inconsistencies.One of the main benefits of using DBCC CHECKDB is …

SQL Server DBCC Commands: DBCC CHECKDB Read more »

As a database administrator, ensuring the integrity of your SQL database is of utmost importance. Any corruption or damage to the database can result in data loss or application downtime, which can have severe consequences for your business. One of the tools you can use to maintain database integrity is the DBCC Checkdb command. In this article, we will discuss …

Maintaining Database Integrity with DBCC Checkdb Command Read more »

Occasionally you may want to run DBCC CheckDB against all of the databases on your SQL Server. Hopefully you have a job to run checkdB regularly, but in case you just want to check to confirm that you have no corruption on all of your databases right now you can use this script.   Once you run the script copy …

Quick script to run DBCC CheckDB for all of your databases Read more »

You have a DBCC CHECKDB script running, something like the following, and it may take several hours to run to confirm if there is any corruption in your SQL Server Database. Then someone asks you the age old question… When will it be done?   You look at the window running the command and you can see how long it …

DBCC CheckDB or CheckTable – Find percent complete Read more »

This weeks episode of the is Episode 90 released today.  Episode Quote “I would say that the bigger issue is probably going to be something like snapshot space for your disk” “When the rubber hits the road I’m still running CheckDB and CheckTable but it’s all about the process behind it”  Overview DBCC CheckDB.  It is a simple command, but …

Podcast Episode 90: DBCC CheckDB Read more »

Special thanks to my friend Theresa Iserman for introducing me to Jos de Bruijn the Senior Program Manager for the In Memory OLTP (Hekaton) project to help get my questions answered at PASS Summit. So, the Hekaton – In Memory OLTP tables are perhaps one of the most amazing performance improvements to SQL OLTP in a long time. The way …

DBCC CheckDB and CheckTable doesn’t check In-Memory OLTP. Read more »

If you use the SQL Server maintenance plans to run DBCC Check DB, you are not allowed to include TempDB in your DBCC CheckDB sequence. For a while I was using maintenance plans, and ending up adding a separate job step to run TSQL to just check TempDB. Rather than using two different steps, the regular maintenance plan, and a …

DBCC CheckDB All Databases Read more »