I have an employee table in which new records are inserting by procedure dbo.ISP_InsertEmplyoeeDetails
. But at the same time another procedure dbo.USP_UpdateEmplyoeeDetails
is updating the same records which are inserting in procedure dbo.ISP_InsertEmployee
but not committed yet.
This creates data anomalies. I need to implement two scenarios here based on some the condition:
- Scenario 1: need to update the uncommitted insert data based on some condition
- Scenario 2: update will be blocked or on hold till insert operation committed its records