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
Two matching kites on the grass, differing only in their tails, one short and red.

Comparing a Good and a Bad Plan for One Query in Query Store

December 3, 2019
Pinal Dave
SQL Performance
Execution Plan, Query Store, SQL Performance, SQL Server

Compare a good and a bad plan in Query Store using runtime history, SSMS Compare Showplan, estimates, joins, grants, and parallelism.

Read More
A multi-hole planting tool and a single-hole dibber offer two ways to process a row

How to Disable Batch Mode in SQL Server? – Interview Question of the Week #252

November 24, 2019
Pinal Dave
SQL Interview Questions and Answers
ColumnStore Index, SQL Index, SQL Performance, SQL Scripts, SQL Server

My immediate reaction was why would you disable batch mode in SQL Server when it is really is an awesome feature for performance

Read More
Three nearly identical rakes on a shed wall and a fourth new red-handled rake by the door.

Missing Index Suggestions: Three Checks Before You Create One

November 12, 2019
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Performance, SQL Server

Review missing index suggestions against existing indexes, key order, and INCLUDE size before adding extra write overhead.

Read More
Gouache painting of a railway junction where a vermilion switch lever sends a small handcar onto a short siding ending at a buffer stop.

ABORT_QUERY_EXECUTION: Stopping a Runaway Query With a Query Store Hint

November 8, 2019
Pinal Dave
SQL Performance
Query Hint, Query Store, SQL Performance, SQL Scripts

ABORT_QUERY_EXECUTION is a SQL Server 2025 Query Store hint that makes one known bad query fail before it uses any CPU. This post sets the hint, shows the exact error the caller gets, lists and clears the hint, and covers the traps: exact text, SET options and queries already running.

Read More
Gouache painting of seedling trays on a greenhouse bench, grouped by wooden dividers and ordered smallest to tallest, with one vermilion divider.

Sequence Project and Segment: How Window Functions Show Up in a Plan

November 6, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Performance, SQL Scripts

A window function leaves Segment and Sequence Project operators in a query plan, and a Sort in front of them. This post tests ROW_NUMBER and a running total on SQL Server 2025, shows the batch mode Window Aggregate that replaces them, and removes the Sort with an index.

Read More
Gouache painting of a conveyor belt where most wooden crates slide into a return chute and only two continue, one of them vermilion.

The Filter Operator: When SQL Server Reads Everything and Keeps a Few Rows

November 5, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Performance, SQL Scripts

The Filter operator keeps a few rows after the plan has read and sorted many more. This post shows one on SQL Server 2025 with the actual plan and the logical reads, then rewrites the query so it seeks instead and reads about a fifth as many pages.

Read More
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
Previous 1 … 16 17 18 19 20 21 22 … 54 Next
  • Books
  • Testimonials
  • Privacy Policy

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