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 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
One sewing tool makes a new seam while another refreshes a worn seam

How to Enable Auto Update Statistics and Auto Create Statistics with T-SQL – Interview Question of the Week #108

February 5, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Statistics

Question: How to Enable Auto Update Statistics and Auto Create Statistics? Let us learn how we can fix that in today’s blog post.

Read More
A diagnostic cabinet preserves empty molds while the finished vessels remain in the source cabinet.

SQL SERVER – CLONEDATABASE: Generate Statistics and Schema Only Copy of the Database

December 20, 2016
Pinal Dave
SQL Performance
Schema, SQL Scripts, SQL Server, SQL Server 2016, SQL Statistics

CLONEDATABASE can Generate Statistics and schema-only diagnostic copies without copying table rows. I use that distinction when investigating optimizer behavior.

Read More
Magnifying glass, document with red cross.

Error: Msg 1904 The statistics on table has 65 columns in key list

October 27, 2016
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Statistics

SQL SERVER – Fix: Error: Msg 1904 The statistics on table has 65 columns in the key list. Let us learn how to fix in this blog.

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

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