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
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
T-SQL Tuesday #156 - Wrap Up

T-SQL Tuesday #156 - Wrap Up

Fifteen SQL bloggers answered one question: what turns ordinary code into production code? Here's what they taught me.

T-SQL Tuesday 3 min read
Testing the code (T-SQL Tuesday #156)

Testing the code (T-SQL Tuesday #156)

I picked the T-SQL Tuesday topic and still struggled to answer it. The quality of production code I value most: it has tests.

T-SQL Tuesday 2 min read Regex · CI/CD
Production Code (T-SQL Tuesday #156)

Production Code (T-SQL Tuesday #156)

I'm hosting T-SQL Tuesday this November. The question: which secret ingredient turns ordinary code into production-grade code?

T-SQL Tuesday 1 min read
Scary Scalar Functions - Part Four: Your Environment

Scary Scalar Functions - Part Four: Your Environment

You've learned why Scalar UDFs are slow and how to remove them. The last question: where do you even start? Here's how I triage them across a whole environment.

Deep Dive 5 min read Performance · Parallelism