Hi Team,
Database: SQL Server 2012 Express
Front End: VB .Net application
I have got a PoS application which read last Transaction id from a Transaction id table and then once Transaction is committed gets updated with new value. This is all in single connection from vb.net (single method within vb.net)
Now what I want to confirm is if two users are about to commit a Transaction they both will have a same Transaction id as they both will read at the same time with two diff connections. This can create problem as they both are diff transactions and my transaction table will consist multiple transaction detail within same transaction.
I hope I am explaining this well. Hope you guys get the point I am trying to make.
My questions are
- Has anyone came across same issue?
- how does sql server treats data read from two diff connections, I mean does it wait for one connection to close the connection before other connection tries to read the same table?
- How to overcome this issues? What shall I be careful within my vb.net connection / coding.
Much appreciate your help.
Sap