SQL Server Science
Technical Articles for the DBA / Developer
Home » SQL Server

The NULL Bitmap: How SQL Server Records Nullability

2026-07-17 · by Hannah Vernon · in Internals

Every SQL Server data row carries a NULL bitmap, even a table with no nullable columns. Find it on the page, watch the bits flip as columns go NULL, and see what it actually costs.

How SQL Server Stores MONEY and SMALLMONEY, and the Rounding Trap

2026-07-16 · by Hannah Vernon · in Internals

money and smallmoney are just integers scaled by 10000. The real page bytes, why the ranges are what they are, and the four-decimal truncation trap that bites calculations.

How SQL Server Stores DECIMAL and NUMERIC, Down to the Bytes

2026-07-15 · by Hannah Vernon · in Internals

decimal and numeric store a sign byte plus a little-endian integer scaled by the column scale. Why precision buys storage in tiers, and why an oversized decimal is not free.

How SQL Server Stores a GUID, and Why Random Ones Fragment

2026-07-14 · by Hannah Vernon · in Internals

A uniqueidentifier is 16 bytes with a peculiar sort order. Why random GUIDs fragment as a clustering key, and how NEWSEQUENTIALID and design fix it.

How SQL Server Stores Strings: varchar, nvarchar, and What UTF-8 Changed

2026-07-13 · by Hannah Vernon · in Internals

The same word can take 3, 5, 6, or 9 bytes depending on the type and collation. A byte-level look at varchar, nvarchar, and UTF-8 collations.

SQL Server HA and DR Options: A Field Guide

2026-07-12 · by Hannah Vernon · in High Availability

Log shipping, replication, mirroring, FCIs, and Availability Groups compared: what each protects, sync vs async, failover, editions, and versions.

1 2 … 6 Next »

Search

Categories

  • AI for DBAs
  • announcements
    • events
  • basics
    • localization
  • configuration
  • Data Architecture
  • DMVs
  • documentation
  • extended-events
  • Git for DBAs
  • High Availability
  • Hot Takes
  • Internals
  • maintenance
    • patching
  • Opinion
  • performance
  • PostgreSQL
  • Professional Development
  • recovery
  • reporting
  • security
    • data security
  • service broker
  • SQL Server Agent
  • statistics
  • sys
  • t-sql
    • xml
  • tools
    • data masking
    • wsus
  • troubleshooting
  • Uncategorized

Pages

  • About SQL Server Science
  • Get Better Help with a Minimal, Complete, and Verifiable Example, or MCVE
  • Privacy Policy

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.

To find out more, including how to control cookies, see here: Cookie Policy

Copyright © 2026 SQL Server Science