Skip to content
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… 

A random selection of tools

How SQL Server stores data types: UNIQUEIDENTIFIER

This week we’re looking at how the database engine stores GUIDs (globally unique identifiers), specifically known as UNIQUEIDENTIFIER in SQL Server. If you would like to read about storage of other data types, here are… 

Black and white Texas Instruments calculator

How SQL Server stores data types: floating points

  • by

In this post we are looking at how SQL Server stores floating point values (FLOAT and REAL). If you’d like to read the previous posts in this series of how SQL Server stores data types,… 

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… 

A close up of a laptop motherboard

An insidious form of SQL injection

  • by

As longtime readers know, I am also a software developer (we can’t call them engineers in Canada for legal reasons). I took over a complex codebase last year in a field I’m unfamiliar with, and… 

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… 

PASS logo

PASS Summit 2020 pre-con time

  • by

In 2018, I entered Speaker Idol at the PASS Summit, and because I forgot to start my timer I was disqualified for running over the five-minute limit (say “five-minute limit” fast ten times in a… 

brown and white clocks

How SQL Server stores data types: dates and times

  • by

This post dives into how SQL Server stores date and time data types in memory and on disk. But first, a note about endianness: CPUs manufactured by Intel and other vendors process binary values in… 

WUT?

Remember this if you want to use sp_

  • by

Erik Darling, of Erik Darling Data (blog | Twitter) recently posted a very interesting video (my YouTube playlist is all Erik Darling Data videos and Honest Trailers). In this video he demonstrates an easily repeatable… 

Adelaide SQL Server User Group

Join me (virtually) in Adelaide!

  • by

I will be presenting a session to the Adelaide SQL Server User Group on April 15th, 2020, and if you’re awake at that time (it’ll be 9pm on April 14th for me), you’re welcome to… 

sql2xls goes cross-platform

  • by

Last year I released sql2xls, a free open-source tool which lets you throw a bunch of scripts into a folder, run them automatically against SQL Server and get the results back in a nicely-formatted Excel…