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
A small workboard clamp is distinct from a locked storage cabinet.

SQL SERVER – What is Latch?

September 15, 2020
Pinal Dave
SQL Tips and Tricks
SQL Memory, SQL Server, SQL Server DBCC, SQL Wait Stats

What is Latch protection in SQL Server was a reader question after my scheduler video. A latch provides short-lived internal synchronization.

Read More
Gouache painting of a wicker trunk half packed with neat folded blankets and a vermilion strap left half buckled

Kill a Running Shrink: Is It Safe to Stop DBCC SHRINKFILE?

June 4, 2020
Pinal Dave
SQL Tips and Tricks
Shrinking Database, SQL Performance, SQL Server DBCC

You can kill a running shrink with KILL and the database stays safe. This post starts a shrink on a test database, stops it from a second window, checks the data and the file afterwards, and shows that the shrink itself, not the kill, is what fragments the table.

Read More
rowssampled

SQL SERVER – Rows Sampled – sys.dm_db_stats_properties

June 2, 2020
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server, SQL Server DBCC, SQL Statistics

Here is the question asked in my yesterday’s Comprehensive Database Performance Health Check about rows sampled from sys.dm_db_stats_properties.

Read More
Separate pattern guides retain individual thread bundles for inspection rather than one combined change total.

SQL SERVER – Statistics Modification Counter – sys.dm_db_stats_properties

June 1, 2020
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts, SQL Server, SQL Server DBCC, SQL Statistics

The Statistics Modification Counter tracks changes relevant to each statistics object. I inspect it alongside the affected query and estimates.

Read More
A hen leads its associated chicks out of a barn

How to Get Details of All Files Associated with Database from MDF? – Interview Question of the Week #275

May 3, 2020
Pinal Dave
SQL Interview Questions and Answers
SQL Log, SQL Scripts, SQL Server, SQL Server DBCC

Question: How to Get Details of All files Associated with Database from MDF? Let us learn about the DBCC command DBCC command dbcc checkprimaryfile.

Read More
Gouache painting of attic shelves with a few shiny pots, many dusty ones and a vermilion broom leaning on the shelf

Remove Cached Plans Not Used for a Set Time in SQL Server

March 7, 2020
Pinal Dave
SQL Performance
Execution Plan, SQL Cache, SQL Scripts, SQL Server DBCC

To clear cached plans not used for a set time, list the plans by their last execution time or by the time they were built, then clear each one by its plan handle. This post builds a small procedure that previews the plans first and removes them only when you switch it on. It also explains why the plan handle needs its 0x prefix.

Read More
A new adjustable clamp aligns boards while an old clamp rests unused

What is the Replacement of DBCC DBREINDEX? – Interview Question of the Week #263

February 9, 2020
Pinal Dave
Personal
Maintenance Plan, SQL Index, SQL Scripts, SQL Server, SQL Server DBCC

Question: What is the Replacement of DBCC DBREINDEX?

Answer: The answer to this question is very simple.

Here is the syntax:

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

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