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
Gouache painting of a small wildlife camera strapped to a birch tree, aimed at one narrow forest path, with a vermilion cord running to a stake.

Capture Query Plans With Extended Events: A Safe, Scoped Session

November 4, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Extended Events, SQL Performance, SQL Scripts

To capture query plans without guessing, use an Extended Events session scoped to one database and a duration threshold. This post builds one on SQL Server 2025, reads the captured actual plan, and measures why plan capture must be switched on briefly and then off.

Read More
A railway yard where wagons roll into four sidings, one siding far longer than the other three.

Parallel Plans: Reading Gather Streams and Repartition Streams

October 24, 2019
Pinal Dave
SQL Performance
Execution Plan, MAXDOP, Parallel, SQL Performance, SQL Server

Read Gather Streams and other parallel exchanges, inspect rows per thread and spill evidence, and relate exchange waits to actual work.

Read More
Gouache painting of rows of pebbles arranged smallest to largest on a flat rock with one vermilion pebble

Does GROUP BY Sort Results? Only ORDER BY Guarantees It

October 23, 2019
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Group By, SQL Order By, SQL Scripts

Does GROUP BY sort the rows it returns? No: only ORDER BY guarantees an order. This post builds a small demo, shows one GROUP BY query returning two different orders, and reads the plans that explain why.

Read More
Hands holding a huge airy meringue and a small dense fruitcake, the hand with the fruitcake sinking lower.

Operator Costs in an Execution Plan: Read Them Without Being Fooled

October 19, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Operator, SQL Performance, SQL Server

Interpret operator costs as estimates, compare actual rows and runtime evidence, and find expensive work without trusting plan percentages.

Read More
One scythe in a mostly uncut hayfield while three more scythes hang idle on the barn wall.

NonParallelPlanReason: Why a Query Refuses to Go Parallel

September 14, 2019
Pinal Dave
SQL Performance
Execution Plan, MAXDOP, Parallel, SQL Performance

Read NonParallelPlanReason in actual and cached plans, then check MAXDOP, scalar functions, table variables, and query cost.

Read More
An already ordered line of containers travels along a conveyor

Do Stream Aggregate Operator Always Need Sort Operator? – Interview Question of the Week #240

September 1, 2019
Pinal Dave
SQL Interview Questions and Answers
Execution Plan, Parallel, SQL Operator, SQL Scripts, SQL Server

Question: Do Stream Aggregate Operator Always Need Sort Operator?

Answer: Absolutely No.Before I explain this question a bit more in detail.

Read More
Illustrated cover: Stream Aggregate vs Gather Streams

SQL SERVER – Is Stream Aggregate is Same as Gather Streams of Parallelism?

August 30, 2019
Pinal Dave
SQL Tips and Tricks
Execution Plan, Parallel, SQL CPU, SQL Operator, SQL Scripts, SQL Server

Is Stream Aggregate is Same as Gather Streams of Parallelism? – This was one of the brilliant questions I had received during my recent engagement.

Read More
Previous 1 … 14 15 16 17 18 19 20 … 35 Next
  • Books
  • Testimonials
  • Privacy Policy

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