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
An open garden gate allows passage while sturdy braces keep its frame stable

Does NOLOCK Really Applies No Lock? – Interview Question of the Week #209

January 20, 2019
Pinal Dave
SQL Interview Questions and Answers
Query Hint, Schema, SQL Lock, SQL Scripts, SQL Server

Does NOLOCK really applies no lock? No. NOLOCK takes a Sch-S, or schema stability, lock. Here is a simple script to see it for yourself.

Read More
A red wheelbarrow stopped across a garden path with three more wheelbarrows waiting behind it

Diagnosing Blocking Chains With sys.dm_exec_requests

December 12, 2018
Pinal Dave
SQL Performance
DBA, SQL DMV, SQL Lock, SQL Performance, SQL Wait Stats

Trace blocking chains from active requests to a candidate head session, inspect sleeping transactions, and verify the owner before action.

Read More
AlwaysOn & Full-Text Search.

SQL SERVER – Always On Availability Groups and Full-Text Index

October 20, 2018
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL DMV, SQL Error Messages, SQL Lock, SQL Scripts, SQL Server

Read queries were blocked on a secondary replica. Here is a common issue you may face when you use full-text index with Always On Availability Groups.

Read More
Small red ribbons tied to pine trunks marking a path through a wood to a single picnic table in a clearing.

Decoding wait_resource: From a KEY or PAGE Lock to the Table

August 14, 2018
Pinal Dave
SQL Performance
SQL DMV, SQL Lock, SQL Server, SQL Wait Stats

Decode wait_resource for blocked requests, map KEY and PAGE locks to objects, and keep undocumented row-hash checks on test copies.

Read More
A glaze vessel and preserved sampling dishes sit beside a clean dish for a new sample.

SQL SERVER – 3 Different Usage of DBCC SQLPERF

August 19, 2017
Pinal Dave
SQL Performance
SQL Lock, SQL Scripts, SQL Server, SQL Server DBCC, SQL Wait Stats

DBCC SQLPERF can report log usage or reset cumulative wait and latch statistics. I separate reporting from resetting the baseline.

Read More
Two small cars nosing into the same single empty parking space on a cobbled street from opposite directions.

Upsert Patterns in SQL Server Without Race Conditions

August 11, 2016
Pinal Dave
SQL Tips and Tricks
Deadlock, SQL Lock, SQL Server, SQL Transactions

Compare upsert patterns under concurrent calls, protect missing-key ranges, test MERGE with HOLDLOCK, and keep unique keys as a guard.

Read More
A deckhand seen from behind swinging a mooring rope toward a bollard again after a throw fell short.

A Retry Loop in T-SQL for Deadlock Victims and Lock Timeouts

August 1, 2016
Pinal Dave
SQL Tips and Tricks
Deadlock, SQL Lock, SQL Server, SQL Transactions

Build a bounded retry loop for deadlock and lock-timeout errors, roll back each failed transaction, and keep diagnostics beside retries.

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

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