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 stack of bamboo steamer baskets with one tier lifted out and steaming beside it.

Partition Elimination: Proving a Query Reads Only What It Needs

November 24, 2017
Pinal Dave
SQL Performance
Execution Plan, SQL Performance, SQL Server, Table Partitioning

Prove partition elimination with the actual plan, test date predicates, and use $PARTITION to check which slice SQL Server targets.

Read More
Sql server compatibility level chart.

SQL SERVER – Compatibility Level 80 and Table Hint Behavior

October 24, 2017
Pinal Dave
SQL Performance
Compatibility Level, SQL Scripts, SQL Server

A health check led me to a database on compatibility level 80, sudden deadlocks and a surprise in table hint behavior. Here is what I found.

Read More
When to turn on optimize.

SQL SERVER – When to Turn On Optimize for Ad Hoc Workloads?

October 20, 2017
Pinal Dave
SQL Performance
Execution Plan, SQL Memory, SQL Scripts, SQL Server

A true story from a recent health check, with two instances on one server, shows when you should turn on Optimize for Ad Hoc Workloads.

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
Free Analysis.

SQL SERVER – Wait Stats Collection Scripts for 2016 and Later Versions

August 29, 2017
Pinal Dave
SQL Performance
SQL Scripts, SQL Server, SQL Wait Stats

Are my Wait Stats Collection Scripts still valid for SQL Server 2016 and later? Yes, they work on every version. Here they are, with a few recent enhancements.

Read More
Get wait stats related session id.

SQL SERVER – Get Wait Stats Related to Specific Session ID With sys.dm_exec_session_wait_stats

August 28, 2017
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts, SQL Server, SQL Server 2016, SQL Wait Stats

From SQL Server 2016, sys.dm_exec_session_wait_stats shows wait stats for a specific session ID. Here is how to use it, and why it fails on older versions.

Read More
Previous 1 … 47 48 49 50 51 52 53 … 120 Next
  • Books
  • Testimonials
  • Privacy Policy

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