Two scripts run twice: the plain script raises error messages 2705, 1913, 2714, 1750 on run 2 and changes the Fern price from 11.00 to 12.10, leaving 6 different rows; the guarded script raises no errors, changes 0 rows and leaves 0 different rows

Schema Snapshot: Prove a Deployment Script Is Safe to Run Twice

A schema snapshot records a table’s columns, indexes, constraints and rows, so you can prove a deployment script is safe to run twice. This post runs a plain script twice and watches a price change again. It then guards each step, runs the guarded script twice, and shows that the two snapshots match. Every result comes from SQL Server 2025.

Read More