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
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 front door with two identical brass doorbells, one polished and gleaming, the other dull with a small cobweb.

Duplicate Statistics: Auto-Created Stats That Shadow Index Statistics

April 16, 2020
Pinal Dave
SQL Performance
DBA, SQL Index, SQL Server, SQL Statistics

Find duplicate statistics on index-leading columns, compare freshness and sampling, and generate cautious DROP STATISTICS candidates.

Read More
A boat ramp ending in dry cracked mud with a red buoy at its foot, the lake shrunk far away

Stale Statistics: Detecting and Updating Them

March 20, 2020
Pinal Dave
SQL Performance
DBA, Execution Plan, SQL Performance, SQL Server Agent, SQL Statistics

Detect stale statistics with update properties, review modification thresholds, and schedule targeted refreshes with recorded outcomes.

Read More
Gouache painting of a cello, a violin and a harp with a small music stand and a single vermilion tuning fork between them

Dynamics SQL Server Settings: Five Checks for NAV, AX and CRM

February 5, 2020
Pinal Dave
SQL Performance
MAXDOP, SQL Index, SQL Scripts, SQL Statistics, SQL TempDB

Dynamics SQL Server settings decide most of the speed you get from NAV, AX and CRM, because you rarely control the application code. Five read-only checks cover tempdb, autogrowth, MAXDOP, automatic statistics and statistics age. Each one comes with a short query and a clear rule.

Read More
Gouache painting of a garden bed with many small seedlings and a wicker basket holding pulled ones

DROP STATISTICS Script: Remove Auto-Created Statistics

February 4, 2020
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Statistics, SQL System Table

A DROP STATISTICS script can remove every auto-created statistic in a database, and SQL Server builds the useful ones again on demand. This post previews the statements, runs them behind a switch and shows what happens to the next query. It also says when the cleanup helps.

Read More
Title card: WAIT_ON_SYNC_STATISTICS_REFRESH

SQL SERVER – Resolve WAIT_ON_SYNC_STATISTICS_REFRESH Wait Type

January 23, 2020
Pinal Dave
SQL Performance
SQL Server Management Studio, SQL Statistics, SQL Wait Stats

During Comprehensive Database Performance Health Check I recently faced a brand new wait type WAIT_ON_SYNC_STATISTICS_REFRESH.

Read More
Gouache painting of a white cloth covering an unseen lump beside a small wooden box fitted around a pear

Parameter Sniffing Local Variable: What the Trick Fixes

December 20, 2019
Pinal Dave
SQL Tips and Tricks
Parameter Sniffing, SQL Scripts, SQL Statistics, SQL Stored Procedure

The parameter sniffing local variable trick copies a parameter into a variable so SQL Server cannot sniff it. This post measures the estimate and the page reads of a sniffed and a local variable procedure, called in both orders. It shows what the trick fixes, and what it leaves slow.

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

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