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 canal lock with a vermilion sluice wheel between the closed gates

Enable Adaptive Join in SQL Server: Why It Does Not Appear

March 26, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Joins, SQL Scripts, SQL Server

To enable adaptive join in SQL Server, the compatibility level, the database setting and the query must all agree. This post builds a demo database and probes the plan under each condition. It also corrects older advice whose statements switch the feature off.

Read More
Gouache painting of a blue locomotive on a track beside a platform with small crates and a post with a round vermilion signal

Adaptive Threshold Rows: How an Adaptive Join Chooses

March 25, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Joins, SQL Scripts, SQL Server

Adaptive threshold rows is the row count at which an adaptive join switches from nested loops to a hash join. This post runs two queries on WideWorldImporters, reads each threshold from the cached plan, and shows which branch ran. The first query stays below its threshold and the second goes above it.

Read More
Expensive Query

Find Expensive Queries – SQL in Sixty Seconds #159

March 23, 2021
Pinal Dave
SQL Video
SQL CPU, SQL in Sixty Seconds, SQL Memory, SQL Scripts, SQL Server

Earlier I wrote a blog post about SQL SERVER – List Expensive Queries – Updated March 2021. Let us learn how to Find Expensive Queries.

Read More
Gouache painting of a basket of fresh peaches beside a shelf of preserve jars, some with cloth tops, one deep red jar

CHECKPOINT Covers One Database: Flush Data to Disk

March 19, 2021
Pinal Dave
SQL Performance
Disk, SQL Memory, SQL Scripts, SQL Server

CHECKPOINT covers one database, so to flush data to disk you run it in each database. A demo with two databases shows one flushed and one still dirty. A short script then flushes every database in one pass, and the post says when a flush is worth it.

Read More
A kitchen table tilting on a level floor because one leg still sits on old folded red card.

Auditing Query Hints Left in Production Code

March 18, 2021
Pinal Dave
SQL Performance
Execution Plan, Query Hint, Query Store, SQL Server

Start auditing query hints in modules and Query Store, rank the busiest statements, and test removal with measured plans and rollback.

Read More
Gouache painting of a market stall balance scale pulled down by a crate of heavy pumpkins, one vermilion

Expensive Queries by query_hash: Total Cost, Not One Plan

March 17, 2021
Pinal Dave
SQL Performance
SQL CPU, SQL Memory, SQL Scripts, SQL Server

Expensive queries by query_hash are ranked by total cost, not by single plans. A demo runs one lookup with 40 different literals and shows that the top single plan is a scan, while the grouped total, ranked by reads, points at the lookup. The query ranks by reads, CPU, time or runs.

Read More
Case-Sensitive Search

Case-Sensitive Search – SQL in Sixty Seconds #158

March 16, 2021
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Server, SQL String

Earlier I wrote a blog post about SQL SERVER – Case-Sensitive Search. Lots of people said I should make a video on this topic.

Read More
Previous 1 … 24 25 26 27 28 29 30 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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