Notes from a TSQL trench

Database stuff,
with a side of memes.

Long-form notes on TSQL performance, Extended Events, Query Store and the tooling around them. Written from the trenches, not the slide deck.

61 posts 4 series 108+ memes
IS Lock in RCSI Enabled Database

IS Lock in RCSI Enabled Database

I found an IS lock in a deadlock report on an RCSI database. That shouldn't be possible. Here's what caused it.

Investigation 6 min read Extended Events · Debugging
Don't Be Lazy

Don't Be Lazy

Sometimes the fastest help is the kind you find yourself. A rundown of the lazy question patterns I keep seeing in SQL help channels.

Opinion 4 min read Debugging · Productivity
Short Code Examples (T-SQL Tuesday #143)

Short Code Examples (T-SQL Tuesday #143)

This month's T-SQL Tuesday invitation is from John McCormack. I'm sharing a few handy snippets I use on a regular basis - a time loop, impersonation testing, database recreation, and some RegEx for SSMS Find & Replace.

T-SQL Tuesday 3 min read Regex · Productivity
Query Store default settings

Query Store default settings

Query Store comes with default settings - but are they what the documentation says? Let's find out using a simple Extended Events session.

Deep Dive 4 min read Query Store · Extended Events
Investigating Errors With Extended Events

Investigating Errors With Extended Events

Production errors are hard to reproduce. Here's my go-to Extended Events session that captures errors with their full TSQL calling stack.

How to 6 min read Extended Events · XML
Out with the old…

Out with the old…

WordPress was making me hate blogging. Moving to Hugo, GitHub, and Azure Static Web Apps fixed that.

Non-technical 2 min read Personal