Best to use a transaction block if you do multiple updates in one "batch"So ...BEGIN TRANSACTIONINSERT INTO TableA(Col1, Col2, ...) VALUES ('Foo', 'Bar', ...)UPDATE USET Col3 = 'FooBar'FROM TableB AS UWHERE Col3 = 'BarFoo'COMMITthis will ensure that either both updates occur, or neither do, and if both updates interact in some why that no other update will "get in the way" - the transaction is "Atomic".You can, and should, put error checking after the Insert and Update statements in that batch, and then if you had an error (or if you hit a soft error - such as some sort of Data Validation error - then you could issue a ROLLBACK and any other updates within the transaction would be rolled-back.