Sitemap
Trevor Dwyer

Trevor Dwyer

Former SQL MVP, Writer and have a Brain Pacemaker. Working somewhere that can't be named and creating little pieces of art.

Member-only story

I Built My Head Out of Lego. Inside SQL Server 2025.

20 min readOct 16, 2026

A brick is a row. My face is a join. The building instructions are an ORDER BY.

Press enter or click to view image in full size
The money shot: the 3D scan on the left, me in Lego on the right. 4,149 bricks in 13 colours, designed from start to finish by SQL Server 2025.
I could predict the comments if I didn’t give it a brain

The last time my head went into SQL Server it came out lopsided, 6,000 metres tall and with a stunt rear head. If you missed it, that was the Relational Space Carving article, and I finished it by promising you robot eyes and the beginning of a cloning process.

The robot eyes are still in a drawer.

Another time I tried to render my head so that I could create a Metahuman and please do not ask me how this happened, but this came out…

Press enter or click to view image in full size
I have no words really, but I think its something to do with an unclosed mesh.

Instead, I asked myself a much simpler question. Is there any clever maths behind Lego?

I was expecting the answer to be “not really, it’s plastic”. It turns out there is, and nearly all of it is something a relational database is already very good at. So, the plan became: store Lego bricks in SQL Server, build something simple, then build something hard. And the hardest thing I could think of was me.

--

--

Trevor Dwyer
Trevor Dwyer

Written by Trevor Dwyer

Former SQL MVP, Writer and have a Brain Pacemaker. Working somewhere that can't be named and creating little pieces of art.