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.

58 posts 4 series 107+ memes
My Toolbox - SSMS

My Toolbox - SSMS

My SSMS setup guide: layout tweaks, essential Options settings, hotkeys I can't live without, and miscellaneous tips for a better SQL Server Management Studio experience.

Tools 9 min read Productivity
Async stats update causing blocking

Async stats update causing blocking

An index rebuild quietly blocked an async stats update, and the whole server started timing out. Here is the lock-partitioning repro and the SQL Server 2022 fix.

Deep Dive 9 min read Blocking · Debugging
Are ABORT_AFTER_WAIT's victims logged?

Are ABORT_AFTER_WAIT's victims logged?

Does ALTER INDEX REBUILD with WAIT_AT_LOW_PRIORITY log its victims in the error log the same way KILL does? Let's find out.

Deep Dive 3 min read Debugging · Blocking
Extended Events and I (T-SQL Tuesday #166)

Extended Events and I (T-SQL Tuesday #166)

Grant Fritchey asked us to talk about our favourite SQL Server tool for T-SQL Tuesday #166. Mine is Extended Events - and I have the GitHub repo and a public speaking session to prove it.

T-SQL Tuesday 3 min read Extended Events
Misleading SSMS Connection

Misleading SSMS Connection

Read a cautionary tale on how I've deceived the SSMS, then promptly forgot about it and, in turn, ultimately confused myself.

Investigation 3 min read Debugging · Docker
Advent of Code 2022

Advent of Code 2022

This December I'm solving Advent of Code in two languages at once - SQL and KQL. Here's where I'm posting the code and how far I think I'll get.

Non-technical 2 min read KQL · Personal
Default event_file path for Extended Events

Default event_file path for Extended Events

Create an Extended Events session with just a filename and the .xel file lands somewhere - but where? Here's what the default path is and how to change it.

How to 4 min read Extended Events · Docker