Jambone@lemmy.world 1 year ago
In MSSQL, you can do a BEGIN TRAN before your UPDATE statement.
Then if the number of affected rows is not about what you’d expect, doing a ROLLBACK would undo the changes.
If the number of affected rows did look about right, doing a COMMIT would make the changes permanent.
lobut@lemmy.ca 1 year ago
Yup, exact tip I was gonna write!
I have them commented out and highlight the COMMIT when I’m ready.