Adding a Column with a DEFAULT
Applies to SQL Server 2019, 2022 and 2025. Getting an add column with default change right comes down to one word: NULL or NOT NULL. When you add a column with a default to a table that already has rows, that word decides what ends up in the existing rows. I’ve seen release scripts go…