We have several instances of our application running at the same time at various places.
And all instances execute an insert or update
query on a single table Orders
.
Orders
---------------------------------------
OrderID OrderDate OrderTime OrderAmount
The question is, if all instances of my application insert or update
records at the same time, what might happen?
How does MSSQL database handle this scenario?
I googled out and found ROWLOCK, XLOCK, READPAST
as a solution on concurrent access to MSSQL database
but could not find an exact answer for the above scenario!
Any pointers is much appreciated.