I encountered this error
Snapshot isolation transaction aborted due to update conflict. You cannot use
snapshot isolation to access table 'dbo.product ' directly or indirectly
in database 'Test' to update, delete, or insert the row that has been modified or
deleted by another transaction. Retry the transaction or change the isolation level
for the update/delete statement.
When I run the below two transactions
Transaction 1
Set transaction isolation level snapshot
Begin Transaction
Update product set price =100 where id =1
commit transaction
Transaction 2
Begin Transaction
Update product set price =150 where id =1
commit transaction
Why I got this error and How I solve it?