BackGround Info: Using VB 6, several applications were written to read and update 3 MS Access databases. The applications and databases were written with the intention of only being executed on one PC. As times changed, the process of using these applications changed. There is now a need for these applications to be put on several PC's. (Right or Wrong) the way I decided to do it was to put the applications on each PC (maximum 5 PC's) and the MS Access Databases on a Server.
Problems and Questions: In the VB applications I am using ADO. The database language I am using is SQL. I would do something like this:
SQL = "Select * from PartTable;"
Set rstPartTable = pconInventory.execute (SQL)
or
SQL = "Update PartTable set dbField-1 = ...;"
pconInventory.execute, (SQL)
My concern is a concurrency issue. How can I assure that I don't run into all the various concurency problems that could be encountered when 2 or more users are accessing the same database tables?
I understand that when you get a record, it's not just the record that is retrieved. A page with many records is brought into a buffer. One thought process I had is -- is there anyway in coding to lock that PAGE when it is populated and unlock the PAGE after an update is done?
Example:
LOCK PAGE
SQL = "Update PartTable set dbField-1 = ...;"
pconInventory.execute, (SQL)
UNLOCK PAGE
Your experience in this area would help me. I have never coded for multiple data access issues.
Thank You
Sam
Problems and Questions: In the VB applications I am using ADO. The database language I am using is SQL. I would do something like this:
SQL = "Select * from PartTable;"
Set rstPartTable = pconInventory.execute (SQL)
or
SQL = "Update PartTable set dbField-1 = ...;"
pconInventory.execute, (SQL)
My concern is a concurrency issue. How can I assure that I don't run into all the various concurency problems that could be encountered when 2 or more users are accessing the same database tables?
I understand that when you get a record, it's not just the record that is retrieved. A page with many records is brought into a buffer. One thought process I had is -- is there anyway in coding to lock that PAGE when it is populated and unlock the PAGE after an update is done?
Example:
LOCK PAGE
SQL = "Update PartTable set dbField-1 = ...;"
pconInventory.execute, (SQL)
UNLOCK PAGE
Your experience in this area would help me. I have never coded for multiple data access issues.
Thank You
Sam