Skip to content

Darling Data

AI Training for Database Teams and SQL Server Performance Tuning

Darling Data
  • Blog
    • Series
  • Training and Consulting
    • AI and Vector Search Services
    • SQL Server Health Check
    • Working Together
    • AI for Database Teams Workshop
    • SQL Server Training
    • SQL Server Consulting
    • AI Agents for SQL Server: The Guide
  • Scripts
    • sp_HealthParser
    • sp_HumanEvents
    • sp_HumanEventsBlockViewer
    • sp_IndexCleanup
    • sp_LogHunter
    • sp_PerfCheck
    • sp_PressureDetector
    • sp_QuickieStore
    • sp_QueryReproBuilder
    • sp_QueryStoreCleanup
    • Before You Ship That
  • Contact
    • About Me
    • Speaker Information
  • Monitoring
  • Planalyzer
  • Request a Call
  • Get the course

Category: Locking

In SQL Server, Isolation Levels Don’t Control Locking

Posted on October 22, 2019October 22, 2026 by Erik Darling

I seem to have gotten quite a few questions about this lately, so I’m going to write down some thoughts here.

Read the post: In SQL Server, Isolation Levels Don’t Control Locking

Posted in Isolation Levels, Locking, SQL Server

How Unused Indexes Hurt: Lock Escalation

Posted on October 10, 2019November 11, 2026 by Erik Darling

Indexes that are written to but rarely read make lock escalation arrive sooner, because every index that contains the updated column adds locks.

Read the post: How Unused Indexes Hurt: Lock Escalation

Posted in Indexing, Locking, SQL Server1 Comment on How Unused Indexes Hurt: Lock Escalation

When Read Queries Block Write Queries In SQL Server

Posted on October 4, 2019October 22, 2026 by Erik Darling

You may occasionally see in your favorite monitoring tool, or Most Fantastic And Glorious Script For Determining Whom Activity Belongs To™ that a read…

Read the post: When Read Queries Block Write Queries In SQL Server

Posted in Isolation Levels, Locking, SQL Server

How Many Indexes Is Too Many In SQL Server?

Posted on September 4, 2019October 22, 2026 by Erik Darling

Indexes remind me of salt. And no, not because they’re fun to put on slugs.

Read the post: How Many Indexes Is Too Many In SQL Server?

Posted in Indexing, Locking, Query Tuning, Server Tuning, SQL Server

SQL Server Index Key Column Order And Locking

Posted on May 30, 2019November 10, 2026 by Erik Darling

Let’s say we have a super important query. It’s not really important.

Read the post: SQL Server Index Key Column Order And Locking

Posted in Execution Plans, Indexing, Isolation Levels, Locking, SQL Server1 Comment on SQL Server Index Key Column Order And Locking

Should An Optimistic Isolation Level Be The New Default For SQL Server Databases?

Posted on May 15, 2019October 22, 2026 by Erik Darling

Alright, I’ve lied to you already. There are way more than two words involved, here.

Read the post: Should An Optimistic Isolation Level Be The New Default For SQL Server Databases?

Posted in Isolation Levels, Locking, SQL Server17 Comments on Should An Optimistic Isolation Level Be The New Default For SQL Server Databases?

The Real Value Of Optimistic Isolation Levels In SQL Server

Posted on May 14, 2019October 22, 2026 by Erik Darling

While a lot of people speak highly of optimistic locking because it cuts down on blocking issues, I think it’s of equal or higher value that dirty reads…

Read the post: The Real Value Of Optimistic Isolation Levels In SQL Server

Posted in Isolation Levels, Locking, SQL Server

Separating Long Running Queries From Modifications To Fix Blocking Problems In SQL Server

Posted on May 6, 2019October 22, 2026 by Erik Darling

I know you don’t have bad queries. You’re smart people. But some people do!

Read the post: Separating Long Running Queries From Modifications To Fix Blocking Problems In SQL Server

Posted in Locking, Query Tuning, SQL Server4 Comments on Separating Long Running Queries From Modifications To Fix Blocking Problems In SQL Server

How Bad Cardinality Estimates Can Make Blocking Worse In SQL Server

Posted on May 3, 2019October 22, 2026 by Erik Darling

I recently came across a bad locking problem. It was one of those things that happened “suddenly” and “for no reason”.

Read the post: How Bad Cardinality Estimates Can Make Blocking Worse In SQL Server

Posted in Execution Plans, Locking, Query Tuning, SQL Server5 Comments on How Bad Cardinality Estimates Can Make Blocking Worse In SQL Server

How Explicit Transactions Can Make Blocking Worse In SQL Server

Posted on May 2, 2019October 22, 2026 by Erik Darling

You want your stored procedure to be a unit of work that you can roll back if something goes awry.

Read the post: How Explicit Transactions Can Make Blocking Worse In SQL Server

Posted in Locking, SQL Server

Why Does Using The Rowlock Hint In SQL Server Create More Locks?

Posted on May 1, 2019October 22, 2026 by Erik Darling

There are all sorts of fun hints you can staple onto your queries that will make them behave differently.

Read the post: Why Does Using The Rowlock Hint In SQL Server Create More Locks?

Posted in Locking, SQL Server

Isolation Levels Are Inherited In SQL Server Queries

Posted on April 29, 2019November 11, 2026 by Erik Darling

While working with a client who has a nasty blocking problem involving triggers, we were talking about using Snapshot Isolation to help fix the issue.

Read the post: Isolation Levels Are Inherited In SQL Server Queries

Posted in Isolation Levels, Locking, Query Tuning, SQL Server

Why Plan Cache Scripts For SQL Server Can Be Misleading

Posted on April 26, 2019November 11, 2026 by Erik Darling

Most scripts (even ones I’ve worked on!) that look at the plan cache, have had the ability to sort it by different metrics: CPU, reads, writes, duration…

Read the post: Why Plan Cache Scripts For SQL Server Can Be Misleading

Posted in Locking, Plan Cache, Query Tuning, SQL Server2 Comments on Why Plan Cache Scripts For SQL Server Can Be Misleading

Why SQL Server’s READPAST Hint Doesn’t Always Work

Posted on April 24, 2019October 22, 2026 by Erik Darling

Sometimes, you only wanna work on one thing. Other times, you only wanna work on something if it’s not locked by something else.

Read the post: Why SQL Server’s READPAST Hint Doesn’t Always Work

Posted in Locking, SQL Server2 Comments on Why SQL Server’s READPAST Hint Doesn’t Always Work

SQL Server’s sp_getapplock Is Pretty Cool

Posted on April 3, 2019November 11, 2026 by Erik Darling

sp_getapplock lets you take a lock on an imaginary resource, so you can serialize a section of code without locking any table or index.

Read the post: SQL Server’s sp_getapplock Is Pretty Cool

Posted in Locking, SQL Server4 Comments on SQL Server’s sp_getapplock Is Pretty Cool

Lock Promotion In SQL Server Parallel Query Plans

Posted on March 15, 2019October 22, 2026 by Erik Darling

But when I do, it’s usually to tell people they should use RCSI, and then disappear in a cloud of smoke.

Read the post: Lock Promotion In SQL Server Parallel Query Plans

Posted in Extended Events, Locking, sp_WhoIsActive, SQL Server1 Comment on Lock Promotion In SQL Server Parallel Query Plans

Posts pagination

Newer posts 1 2
Video courseThese days I have AI do the annoying stuff.

Work With Your Databases the Way I Do shows you how I set that up, one step at a time.

$250 until December 1, then $500
Get the courseTeaching a whole team? One-day workshopWant a day one-on-one? Work with me for a day
Get new posts by email

Plus a free copy of my book Great Post, Erik.

Your team is already using AI tools.

I'll teach them to work with your databases the way I do.

One-day workshop, on-site or remote.

Upcoming Events 2027:
Boston AI Workshop: Burlington, MA April 9

Copyright © 2019-2026 Darling Data

Learn

  • Video course
  • Team workshop
  • One-on-one day
  • SQL Server training
  • Blog
  • Blog series

Consulting

  • SQL Server consulting
  • Health Check
  • AI and vector search
  • Request a call

Free tools

  • Performance Monitor
  • Performance Studio
  • Planalyzer
  • Before You Ship That
  • Scripts on GitHub

Darling Data

  • About
  • Speaker information
  • Contact
  • Privacy policy
YouTubeGitHubLinkedInBlueskyXTikTok

Copyright © 2019-2026 Darling Data