All in T-SQL

The @push_to_prod Pattern

A practical pattern for SQL Server stored procedures that modify production data: default the write gate to 0, and use the ELSE branch to return diagnostic result sets showing exactly what would change before it does.