As a business owner or IT professional, you know your SQL Server is critical to the success of your organization. It’s essential to ensure your SQL Server is running smoothly and your data is protected against data corruption and other issues. One of the most critical steps you can take to protect your data is to run regular CheckDB on …

The Importance of Running CheckDB on SQL Server  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 »

Steve Stedman 0:15 So Derrick, one of the things we run into is customers who are a little bit resistant to running CheckDB as frequently as maybe we think they should normally. And I guess, I’m just curious, what are your thoughts on how frequent? Or how important it is to run CheckDB frequently? Derrick Bovenkamp 0:51 Yeah, that’s, that’s …

CheckDB Chat with Steve and Derrick Read more »

One of the common CheckDB errors that I see is the Message 824, level 24. This is something that I regularly work to repair for customers with great success.   DBCC results for ‘YourDatabaseName’. CHECKDB found 0 allocation errors and 0 consistency errors in database ‘ YourDatabaseName’. Msg 824, Level 24, State 2, Line 1 SQL Server detected a logical …

CheckDB Error Msg 824 level 24 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 »

From time to time I get asked about checkDB, and there are many solutions out there, but I have one that I generally use that is very simple and does the job. The script below created a stored procedure in the DBHealthHistory database that can be used to check as many databases as you can get through in a specific …

My CheckDB Script 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 »

Welcome to the DataBase Corruption Challenge, this is an about weekly blog challenge where I will post a corrupt SQL Server database with some details on what happened to it. If at this point you are already a bit irked by my use of capitalization in the DataBase Corruption Challenge, and the acronym of DBCC that I have used to …

Introducing the DataBase Corruption Challenge (DBCC) – Week 1 Challenge Read more »

The following DBCC commands are all hidden in the word search.  Be aware, some of the DBCC commands are undocumented. CACHESTATS CHECKCATALOG CHECKCONSTRAINTS CHECKDB CHECKFILEGROUP CHECKIDENT CLEANTABLE DROPCLEANBUFFERS FLUSHPROCINDB FREE FREEPROCCACHE FREESESSIONCACHE FREESYSTEMCACHE INDEXDEFRAG OPENTRAN OUTPUTBUFFER PAGE PROCCACHE SHOWCONTIG SHRINKDATABASE TRACEON TRACESTATUS UNPINTABLE UPDATEUSAGE USEROPTIONS END OF PUZZLE ————————- See also: For more information on DBCC Commands: DBCC CheckAlloc DBCC …

SQL Sunday Fun – Word Search with SQL Server DBCC Commands Read more »