Join me at the EightKB virtual conference on 28 July 2021

EightKB logo

Next week on Wednesday 28 July 2021, I will be presenting a brand-new session titled “How SQL Server stores that data type” for the free EightKB virtual conference.

I’ve made it a 500-level talk, as reading hex and binary for fun requires a bit of mental arithmetic. Bob Ward, famous for his half-day brain-melting sessions from PASS Summits of yore is also doing a talk, and I figured I need to bring my A-game.

The sessions are a great selection of in-depth technical content about SQL Server internals. Along with my session, we’ve got Torsten Strauß talking about parallelism in Microsoft SQL Server; Jeff Moden talking about GUIDs in a way that defies all common beliefs regarding GUIDs and fragmentation (I’m really looking forward to this one); Bob Ward talking about SQL waits, latches, and spinlocks; and finally, Pam Lahoud with a deep dive into SQL Server on Azure Virtual Machine Storage.

You don’t want to miss this if you like SQL Server internals. There’s still time to register at eightkb.online. Please take note of the times, as they are listed in UTC. My session starts at 16:00 UTC, which is 10am Mountain.

5 thoughts on “Join me at the EightKB virtual conference on 28 July 2021

  • The session was awesome, but I have one detailed question.

    select cast(‘2000-01-01’ as datetime)
    –result: 2000-01-01 00:00:00.000

    select cast(‘2000-01-01’ as datetime) + 0.5
    –result: 2000-01-01 12:00:00.000

    select cast(‘2000-01-01’ as datetime) + 0.75
    –result: 2000-01-01 18:00:00.000

    Could it be that the fractional day calculation above is different than the actual stored time part that is an multiple of 300 ms?

    • Ahhh, your question is not what I was thinking about. This is covered in more detail by Jeff Moden’s SQL Spackle series on SQL Server Central I noted, but: if you do addition and subtraction on a DATETIME value, the integer value (before the decimal place) is the number of days, and the fraction portion will be a fraction of a day. Whereas, what I was referring to was how the fraction value of the time is persisted on disk. In other words, at 7 milliseconds past midnight on 1 January 1900, you’ll see 0x00000000 00000002 on disk (the space is a convenient way to separate the date from the time for the sake of this example).

      I hope that clears things up!

  • Randolph,

    I absolutely loved your EightKB session! I’ve never heard you give a presentation before and, I have to say, you definitely have the voice for a presenter. I especially loved the binary details about pages (manipulation of and storage binary data was one of my first loves even back in high school in the ’60s) and also pertains to indexes so serious double treat for me. I was very happy to see a deeper dive on GUIDs than I’ve seen most others do and all of the rest of it was absolutely fascinating because of your impeccable order or revelation, your presentation style, and the raw knowledge you shared.

    VERY well done and you can absolutely bet on me running through that awesome presentation a couple of times more. Thank you for the obvious work that you put into making it.

    Heh… and thank you for not ripping me to shreds on my opinion of either the usefulness of the DATETIME datatype or the art of direct datetime manipulation, which so many other people seem to poo-poo doing. 😀

    • Truly high praise, Jeff. Thank you so much for your glowing review. I took great enjoyment and edification from your presentation as well, and promptly changed an older blog post about GUIDs on clustered indexes 😀. I have enjoyed our sparring in the comments previously, because you have given me a new perspective on why things are the way they are, which is invaluable.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: