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
Six evenly spaced bird feeders on a fence, a flock of sparrows crowding one and a robin alone on another

Local Variable Estimates: Why the Density Vector Wins

June 18, 2018
Pinal Dave
SQL Performance
Execution Plan, Parameter Sniffing, SQL Server, SQL Statistics, SQL Variable

Understand local variable estimates with skewed data, density calculations, parameter comparisons, and targeted OPTION RECOMPILE tests.

Read More
Management Studio query window.

SQL SERVER – FIX: Arithmetic Overflow Error in Object Execution Statistics Report in Management Studio

April 6, 2018
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Error Messages, SQL Scripts, SQL Server, SQL Server Management Studio, SQL Statistics

The SSMS Object Execution Statistics report suddenly failed for a client with Msg 8115, arithmetic overflow converting to int. Here is why and what to do.

Read More
A mineral specimen drawer with one sample set aside for individual inspection

How to Drop All the User Created Statistics by SQL Server? – Interview Question of the Week #158

January 28, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL DMV, SQL Performance, SQL Scripts, SQL Server, SQL Statistics

SQL Server creates statistics on its own, but DBAs and the Tuning Advisor add more. Here is a script to drop all user Created Statistics safely.

Read More
A steamy bathroom mirror with a fading fingertip leaf sketch, a red towel on the rail.

How Readable Secondary Replicas Build Their Own Statistics

October 7, 2017
Pinal Dave
SQL Performance
AlwaysOn, SQL High Availability, SQL Server, SQL Statistics

Learn why readable secondary replicas create temporary statistics in tempdb, how to find them, and when the primary needs a permanent statistic.

Read More
A terraced vineyard on a hillside, flat steps of different widths roughly following the slope

Querying a Histogram With sys.dm_db_stats_histogram Instead of DBCC

September 27, 2017
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Server, SQL Statistics

Query sys.dm_db_stats_histogram to inspect statistics steps, compare stored estimates with data, and identify values beyond the last step.

Read More
A wooden staircase whose cream carpet runner is worn thin in a clear track, a red slipper below.

Auto-Created Statistics: What the _WA_Sys Names Tell You

August 3, 2017
Pinal Dave
SQL Performance
SQL Performance, SQL Server, SQL Statistics

Read auto-created statistics through sys.stats and sys.stats_columns, then use their columns as clues for better query tuning.

Read More
Leather stitching pony holding a prepared seam beside completed stitches

Parse and Compile Time: Reading the First Line of STATISTICS TIME

July 13, 2017
Pinal Dave
SQL Performance
Command Line, SQL Server, SQL Statistics

Someone pastes a compile time of 24 ms and asks if the server is slow. Run it twice and watch the plan cache do its job.

Read More
Previous 1 … 5 6 7 8 9 10 11 … 16 Next
  • Books
  • Testimonials
  • Privacy Policy

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