|
|
|
|
|
by JeffRosenberg
1697 days ago
|
|
I try to start any UPDATE or DELETE by writing out a transaction first: BEGIN TRAN;
-- TODO: update statement
ROLLBACK;
Usually I'll run it with the ROLLBACK first, to confirm that it impacts the number of rows I'd expect, and only then change my ROLLBACK to a COMMIT. |
|
And yes, before that I had run an UPDATE without a WHERE in production..