This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
DBCC UPDATEUSAGE

SQL SERVER – Understanding When to Use DBCC UPDATEUSAGE in SQL Server

October 11, 2023
Pinal Dave
SQL Tips and Tricks
SQL Server DBCC

DBCC UPDATEUSAGE is a command available in SQL Server that is used to update the page and row count metadata for database objects.

Read More
Manage Database Size with DBCC SHRINKDATABASE and WAIT_AT_LOW_PRIORITY.

SQL SERVER – Manage Database Size with DBCC SHRINKDATABASE and WAIT_AT_LOW_PRIORITY

September 29, 2023
Pinal Dave
SQL Performance
Shrinking Database, SQL Server DBCC

In this blog post, we will explore the DBCC SHRINKDATABASE command and its options, focusing on the WAIT_AT_LOW_PRIORITY feature.

Read More
A shepherd's hand checking one darker stray sheep among a cream flock inside a stone-walled pen

Checking Constraints After a Bulk Load With DBCC CHECKCONSTRAINTS

September 19, 2022
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Server, SQL Server DBCC

Run DBCC CHECKCONSTRAINTS after a controlled bulk-load bypass, inspect violations, and restore enabled trusted CHECK and foreign-key rules.

Read More
Gouache painting of a large roll of sailcloth on a drum inside an open shed, with a vermilion block wedged under it

Log File Not Shrinking: Read log_reuse_wait_desc First

August 24, 2022
Pinal Dave
SQL Tips and Tricks
Shrinking Database, SQL Backup and Restore, SQL Server DBCC, Transaction Log

A log file not shrinking is explained by one column: log_reuse_wait_desc. A demo database reads LOG_BACKUP and ACTIVE_TRANSACTION from it and shows why the first shrink after a log backup can still fail. A table lists the other reasons with the action for each.

Read More
Gouache painting of a vermilion-handled tea strainer of old leaves on a saucer beside a cup of fresh tea and a grey teapot

Flush Authentication Cache: Who Can Run DBCC FLUSHAUTHCACHE

October 26, 2021
Pinal Dave
SQL Tips and Tricks
SQL Azure, SQL Cache, SQL Server DBCC, SQL Server Security

Flush authentication cache entries with DBCC FLUSHAUTHCACHE. This post tests the command on SQL Server 2025, shows who can run it and that on SQL Server 2025 it ends no open session, and says what it is documented to do on Azure SQL Database.

Read More
A railway worker seen from behind tapping a goods wagon wheel with a long hammer to listen to it

Checking Last Good DBCC CHECKDB Time With LastGoodCheckDbTime

October 22, 2021
Pinal Dave
SQL Tips and Tricks
Database Corruption, DBA, SQL Scripts, SQL Server DBCC

Inspect LastGoodCheckDbTime for each database, flag stale or unavailable checks, and compare metadata with retained integrity-job evidence.

Read More
Gouache painting of a bakery board half clean and half crumbs with a vermilion pastry brush

Reclaim Space After Dropping a Column With DBCC CLEANTABLE

September 9, 2021
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Scripts, SQL Server, SQL Server DBCC

To reclaim space after dropping a column, run DBCC CLEANTABLE or rebuild the index. This post measures both on a demo table and shows that CLEANTABLE shrinks the rows while only a rebuild returns the pages.

Read More
1 2 3 4 … 16 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com