I'm working on an asp.net web site application that uses ODBC to store data into a 2008 R2 Microsoft SQL Server.
My understanding of ODBC is that it is an open database connection, where the connection to the database can be kept open, and during this time only "one connection" can modify, update, insert into the database. Until that connection is closed and another one is opened.
The application is designed to allow multiple user sessions to open connections to the database at the same time, and I don't see any client code that is handling concurrency issues regarding insertions or modifications to the database.
How are multiple users in separate sessions (for example, three users on three separate web browsers), able to modify, update, and insert information safely into one database; particularly when all three users are modifying, deleting, or inserting into the same row at the same time. Does the database automatically provide a lock and wait for that lock to free up from one user session to the next to resolve this concurrent data access issue?