Being day seven of the DBCC Command month at SteveStedman.com, today’s featured DBCC Command is DBCC CHECKTABLE. Description: DBCC CheckTable is used to check the structure of a table to verify the integrity of every data page associated with that table, and all of the indexes associated with that table. If you have used DBCC CheckDB, and a problem has …

DBCC CheckTable Read more »

Being day two of DBCC Command month at SteveStedman.com, today’s featured DBCC Command is DBCC CHECKCATALOG. Description: DBCC CheckCatalog checks the catalog integrity for a given database. DBCC CheckCatalog is less intensive than DBCC CheckDB, as CheckCatalog checks that every data type in syscolumns has a matching entry in systypes and that every table and view in sysobjects has at …

DBCC CheckCatalog Read more »

Being day one of DBBC Command month at SteveStedman.com, today’s featured DBCC Command is DBCC CHECKALLOC. Description: DBCC CheckAlloc checks and can repair disk space allocation structures for a database. DBCC CheckAlloc checks the allocation for all pages in the database compared to their internal structures representing those pages. When you run DBCC CheckDB it internally runs the equivalent of DBCC …

DBCC CheckAlloc Read more »

Database Integrity in SQL Server: What It Is and Why It Matters Maintaining database integrity is one of the most critical aspects of managing any SQL Server environment. Simply put, database integrity ensures that the data stored in your SQL Server remains accurate, consistent, and reliable. However, when database integrity is compromised, it can lead to corruption, which can cause …

Database Integrity in SQL Server: What It Is and Why It Matters Read more »

Database corruption in Microsoft SQL Server can present serious challenges, causing data loss, disruption of services, and potential impact on business operations. Understanding the causes, symptoms, and potential solutions for such corruption is essential for any database administrator looking to maintain the integrity and reliability of their SQL Server environment.. There are several methods you can use to detect corruption …

SQL Server Corruption: How To Detect Corruption Read more »

Common Uses of TempDB in SQL Server TempDB in SQL Server is a globally available temporary storage area used by the SQL Server Database Engine for various purposes. Here’s a list of the most common uses of TempDB: User Objects: Includes user-defined temporary tables and temporary stored procedures. Used to temporarily hold data for processing within a session. Internal Objects: …

What uses TempDB? Read more »

There are several methods you can use to detect corruption in your Microsoft SQL Server database: * Use the DBCC CHECKDB command: The DBCC CHECKDB command is a database consistency checker that scans the entire database and its associated objects to identify and report any corruption. Running DBCC CHECKDB is the most comprehensive way to detect corruption in your SQL …

SQL Server Corruption: How To Detect Corruption Read more »

Some typical corruption scenarios we see: SQL Server Won’t Start If you are in the situation where your SQL Server Won’t Start up, this can be a side effect of the database corruption, and we can help. DBCC CheckDB Errors Running CheckDB throws lots of errors in red text. This also applies to any of the DBCC checks like CHECKCATALOG, …

Common Corruption Read more »

Microsoft has just release an cumulative update for SQL Server 2017 CU 23. I am always interested in fixes to DBCC CHECKDB and DBCC CHECKTABLE. There was one fix related to CHECKTABLE that fixes an issue where the session gets killed when you run DBCC CHECKTABLE with PHYSICAL_ONLY due to disk full. The session remains in KILLED\ROLLBACK state and threads …

New cumulative update for SQL Server 2017 Read more »