Snapshot Isolation Transaction aborted due to update conflict, but no transaction begins
问题 I have encountered an error on executing UPDATE statement. Error: Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.Companies' directly or indirectly in database 'myDatabase' 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. Statement: UPDATE [ActiveSession] SET [LastActionExecutedAt] = GETDATE()