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.

57 posts 4 series 107+ memes
SQL Wordle Series - Part One: Cheating

SQL Wordle Series - Part One: Cheating

Your Twitter feed is probably already full of Wordle posts, so why not one more? Let's start the series the lazy way: by cheating.

How to 4 min read Wordle
Expecting Subvertations

Expecting Subvertations

How can 15 be less than 13? A perfect storm of bad assumptions about sql_variant comparison rules.

Investigation 5 min read Debugging
How to audit data modifications with surgical precision

How to audit data modifications with surgical precision

A colleague needed to find who was changing a specific cell in a busy table. SQL Audit was too noisy, Query Store too vague. I found a way to combine triggers with Extended Events for surgical precision.

Investigation 8 min read Extended Events · Debugging
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