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 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
Gouache painting of an old stone bridge still open with a new footbridge beside it with a vermilion rail

Create an Index Online in SQL Server: What ONLINE = ON Locks

November 16, 2019
Pinal Dave
SQL Performance
SQL Index, SQL Lock, SQL Scripts, SQL Server

To create an index online in SQL Server, add WITH (ONLINE = ON) to CREATE INDEX, and writers keep working while the index builds. This post compares a plain build with an online build on a three million row table, measures what each one blocks and what the online build costs, and shows where it still waits.

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
In a farm apple store, a hand searches a loose bin of apples beside a rack of apples laid in neat rows.

RID Lookups on Heaps vs Key Lookups on Clustered Tables

November 9, 2019
Pinal Dave
SQL Performance
Clustered Index, Execution Plan, SQL Heap, SQL Index, SQL Server

Compare RID lookups on heaps with clustered key lookups, inspect forwarded records, and test covering indexes with actual plans and reads.

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 folding table in a park with tall slender jars of flowers, the last one vermilion

Nonclustered Columnstore Index on a Temp Table in SQL Server

October 31, 2019
Pinal Dave
SQL Tips and Tricks
ColumnStore Index, SQL Index, SQL Scripts, Temp Table

A nonclustered columnstore index works on a temp table but not on a table variable. This post loads a temp table, builds the index, and measures the same aggregate query before and after. It also shows the error a table variable raises and when the build cost pays off.

Read More
Previous 1 … 12 13 14 15 16 17 18 … 64 Next
  • Books
  • Testimonials
  • Privacy Policy

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