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
Five pitfalls with their results: FORCESCAN read 225 pages instead of 2, @@ERROR was 0 after a PRINT, a schema GRANT reached a later table and a DENY removed it, modify() failed with Msg 2337 and Msg 5302, and recursion stopped with Msg 530 at level 100

SQL Server Pitfalls: Five Short Lessons With the Fix for Each

August 1, 2012
Pinal Dave
SQL Tips and Tricks
Query Hint, SQL Error Messages, SQL Server Security, SQL XML

SQL Server pitfalls start with a small assumption. This page shows five of them, one for each topic: query hints, errors, permissions, XML and recursive queries. Each lesson shows the mistake first and the tested fix second. Every result comes from SQL Server 2025.

Read More
Five lesson rows with their results: error 2627 caught and thrown again, a procedure that returned 11,200.00 while a direct SELECT failed with 229, tea found on slips 1 and 3, the breadcrumb Library > Garden > Herbs > Basil, and a hint that cut reads from 5,740 to 318

SQL Server Lessons: Five Short Scripts You Can Run in a Minute

May 16, 2012
Pinal Dave
SQL Tips and Tricks
CTE, Query Hint, SQL Server Security, SQL XML

SQL Server lessons stick when you can run them in a minute. This page covers errors, security, XML, hierarchies and query hints. Each lesson asks one question and answers it with a short script. Every result comes from SQL Server 2025.

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

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