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 red wedge folded under one leg of a wobbly table

Query Store Hints: Fixing a Query Without Touching Its Code

March 19, 2013
Pinal Dave
SQL Performance
Execution Plan, Query Hint, Query Store, SQL Performance

Apply query store hints to a vendor query without code changes, verify failures and plan behavior, then clear the hint after the real fix.

Read More
SQL SERVER - Difference Between NOLOCK and NOWAIT Hints

SQL SERVER – Difference Between NOLOCK and NOWAIT Hints

February 1, 2013
Pinal Dave
SQL Tips and Tricks
Query Hint, SQL Lock, SQL Scripts, SQL Server

Should you use NOLOCK when NOWAIT errors out on a lock? Here is the difference between NOLOCK and NOWAIT, and why neither guarantees a valid answer.

Read More
Set lock timeout' dialog window.

SQL SERVER – Basic Explanation of SET LOCK_TIMEOUT – How to Not Wait on Locked Query

January 28, 2013
Pinal Dave
SQL Performance
Query Hint, SQL Lock

SET LOCK_TIMEOUT works at the connection level, like the NOWAIT hint does for a query. I show how setting it to 0 stops a query from waiting on a lock.

Read More
SQL Server Query Execution Plan.

SQL SERVER – Basic Explanation of Query Hint NOWAIT – How to Not Wait on Locked Query

January 25, 2013
Pinal Dave
SQL Performance
Query Hint, SQL Lock

Everybody knows NOLOCK, but not everyone knows NOWAIT. A question at a Bangalore User Group session led me to explain how NOWAIT skips waiting on a lock.

Read More
A pasta roller holds fixed rollers while dough must pass through successive connected stages

INNER HASH JOIN: Why a Table Join Hint Also Fixes Join Order

August 11, 2012
Pinal Dave
SQL Performance
Execution Plan, Query Hint, SQL Joins, SQL Performance

A join hint in the FROM clause quietly fixes the join order. I show the warning, three plans side by side, and the softer query-level alternative.

Read More
Curved wooden reading nook with books.

Puzzle – Usage of New Index Hints – ForceSeek and ForceScan

September 23, 2011
Pinal Dave
SQL Puzzle
Query Hint, SQL Index, SQL Server

SQL Server Denali adds the FORCESCAN hint next to FORCESEEK. A weekend puzzle on these Index Hints: write a query where each one improves performance.

Read More
A cobbler's bench with a worn standard shoe last and a freshly carved custom last among wood shavings.

OPTIMIZE FOR and RECOMPILE Hints Compared

July 22, 2010
Pinal Dave
SQL Performance
Execution Plan, Parameter Sniffing, Query Hint, Recompile, SQL Server

OPTIMIZE FOR and RECOMPILE address parameter-sensitive plans differently; compare stable representative values with per-run compilation cost.

Read More
Previous 1 … 3 4 5 6 7 Next
  • Books
  • Testimonials
  • Privacy Policy

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