Skip to content
DataGrillen logo

Join me in Germany in June

  • by

I have been selected to speak at the DataGrillen conference later this year. I will be presenting my session How Does SQL Server Store That Data Type?, which I debuted during last year’s EightKB online conference. This… 

Update

Be careful with table updates

  • by

The dire warning in the subject line is not meant to scare you. Rather, it is advice that is going to be useful to those of us who need to audit changes to a database.… 

Floppy diskette with no label on a desktop

A quick primer on binary and hexadecimal

  • by

A few years ago, I wrote that a CPU is “a hot mess of on-off switches.” There’s more to it than that when you get into the weeds of caches and cores and logic gates,… 

messy paint cans and colours

How SQL Server stores data types: sql_variant

  • by

This post looks at a curious data type that isn’t really a data type. Instead, sql_variant tries to be all things to all people. As with most things in life, it has a few shortcomings… 

A half-closed MacBook

How SQL Server stores data types: XML

  • by

This week we’re looking at how the database engine stores the XML data type in SQL Server and Azure SQL Database. If you would like to read about storage of other data types, here are the… 

A wall of scattered pages from a book

The final word on storage for DATETIME2

  • by

Two years ago I wrote a post that got a lot of traction in the comments at the time. Last month there was renewed interest because one of the commenters noted that the official SQL… 

Colourful book case with paper files

Canada Day 2020

  • by

It’s Canada Day here, the commemoration of the country’s confederation in 1867. Given events over the last few months such as the worldwide pandemic, followed by a number of politically-motivated movements for change across the… 

Assorted coin lot in clear glass jar

How should I store currency values in SQL Server?

  • by

On Twitter, Michael Dyrynda writes: ⚠️ Never ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever… 

A stack of coins

How SQL Server stores data types: money

  • by

In this post we look at how SQL Server stores currency values using the MONEY and SMALLMONEY data types. If you’d like to read the previous posts in this series of how SQL Server stores… 

Calculator on written page

Negative identity values don’t suck

  • by

A quick(er) post this week, in response to Greg Low’s blog post from a few weeks ago titled “Don’t start identity columns or sequences with large negative values.” Greg writes that you shouldn’t use large… 

flat lay photography of purple and red leaves

The XML data type is not immutable

  • by

Immutability In many programming languages, strings of text are immutable, meaning they don’t change. When you modify a string, a new string is created in memory by copying the original. The old string stays in…