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
Queue barriers with red ropes zigzagging across an empty hall toward a nearby door.

OPTION (FORCE ORDER): When a Join Order Hint Helps and Hurts

October 12, 2013
Pinal Dave
SQL Performance
Execution Plan, Query Hint, Query Store, SQL Joins, SQL Server

Test OPTION (FORCE ORDER) against real join plans, see when fixed table order helps or hurts, and apply a reversible Query Store hint.

Read More
Several hands reaching into a crate of oranges, each taking a different one, one hand passing over a held orange.

UPDLOCK and READPAST for Queue Tables

April 22, 2013
Pinal Dave
SQL Tips and Tricks
Query Hint, SQL Lock, SQL Server, SQL Transactions

UPDLOCK and READPAST let SQL Server queue workers claim different rows safely when transactions, retries, and completion rules are designed.

Read More
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
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
Previous 1 2 3 4 5 6 Next
  • Books
  • Testimonials
  • Privacy Policy

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