Background, I have a booking system that allows users to book a seat for the concert.
Table: ERP_MovieTickets
Scenario: Two users could book the same seat at the same time, let's say 1-July-2022 at 00:00:50
From the link below, I know these issues could be solved by 'BEGIN TRANSACTION' in SQL Server,
Question:
- When users book the same seat in the scenario above, only one transaction will be triggered?
- The other request will not proceed although they are received by SQL Server at the same time?
- The other request will be canceled?