All jobs / Database administrator / Automation

Database administrator interview question · 1–3 years

What do you put into a SQL script before it is allowed to run against production?

The strongest answer

An explicit transaction, a check that this is the right server and database, the affected row count shown before the commit, batching for anything large, and a tested way back

Why it works

Exactly — the environment check and the tested way back are the two people skip, and a second reviewer catches what you have stopped seeing.

What a good answer covers

Answers that fall short

Who gets asked this

More Automation questions