Until the update statement completes, the transaction will still be open, so make sure you roll back manually or close the window to kill the transaction. You can verify this by including two statements in your transaction in which the first ends, and you cancel it while it starts the second - you can still complete the transaction after it stops, and then get the first half of your results.
BEGIN Transaction UPDATE Person SET Field=1 WHERE Id = 1 UPDATE Person SET Field=1 Rollback
If you run this, give it enough time to finish the first line, click the Stop button in SSMS, then commit transaction , you will see that the first change has been applied. Since you obviously do not want the part of the transaction to be successful, I would just kill the whole window after you stopped it so you can make sure that everything is rolled back.
source share