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 heavy sled hauled almost to the top of a snowy slope, its red rope trailing back down

Before You KILL a Session: Estimating the Rollback Cost

February 4, 2021
Pinal Dave
SQL Tips and Tricks
DBA, SQL Lock, SQL Server, SQL Transactions

Before you KILL a session, inspect its transaction age, log bytes, current command, and likely rollback work, then monitor the undo safely.

Read More
Birds spaced along a power line except around one red insulator where dozens crowd together

Finding the Indexes Behind Lock Waits With Operational Stats

January 18, 2021
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Lock, SQL Wait Stats

Rank indexes behind lock waits with operational stats, separate latches from locks, and test targeted access or row versioning fixes.

Read More
Reduce Deadlock

SQL SERVER – Reduce Deadlock for Important Transactions With Minimum Code Change

June 24, 2020
Pinal Dave
SQL Performance
Deadlock, SQL Lock, SQL Server Configuration, SQL Stored Procedure

They had one transaction which was often the victim of deadlock. Today how to Reduce Deadlock for Important Transactions With Minimum Code Change.

Read More
Illustrated cover: The Blocking Tree

SQL SERVER – Blocking Tree – Identifying Blocking Chain Using SQL Scripts

April 20, 2020
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Lock, SQL Scripts, SQL Server

Whenever I end up on a situation where we have lots of blocking issues with my client, I depend on the script of the Blocking Tree.

Read More
Two hands across a table, one holding salt and one holding a red pepper shaker, each reaching for the other's.

Reading Deadlock Graphs From the system_health Session

March 24, 2020
Pinal Dave
SQL Performance
DBA, Deadlock, SQL Extended Events, SQL Lock

Read deadlock graphs from system_health, identify victims and resource owners, reproduce a two-session cycle, and choose a targeted fix.

Read More
A signalman's hand passing a brass single-line token in a hoop to a train driver's gloved hand.

Application Locks With sp_getapplock: One Job at a Time

November 15, 2019
Pinal Dave
SQL Tips and Tricks
SQL Lock, SQL Server, SQL Server Agent, SQL Stored Procedure, SQL Transactions

Use sp_getapplock to serialize a job, compare transaction and session ownership, handle return codes, and inspect a two-session test.

Read More
A bike rack with one long red chain looped through every slot while a cyclist waits with nowhere to park

Counting Locks per Session With sys.dm_tran_locks

September 13, 2019
Pinal Dave
SQL Performance
SQL DMV, SQL Lock, SQL Server, SQL Transactions

Count locks per session by resource and mode, connect open transactions, and recognize escalation while keeping snapshot limits clear.

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

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