Hi all,
I've got a data-entry web page written with ASP/VBscript. I'm running into the serious problem of being able to have multiple users add data at exactly the same time. Many users in my intranet have complained about an error, which I guess is a multi-user problem.
Here's the specifics:
[ul]
[li]I'm stuck using Access, so there's no point in suggesting MS SQL server or some other nice db system
*sniff*[/li]
[li]using ADODB connection and recordset[/li]
[li]I'm opening my recordset with the parameters as follows:
RS.open sSQL, myConnection, 2, 3 (OpenKeyset, LockOptimistic)[/li]
[li]I run a RS.addnew, set the values of the fields, and then do an RS.update command[/li]
[li]The Addnew/update sequence happens in a for loop, so I'm assuming that multiple users will have this recordset open. (that's why I used lock optimistic)[/li][/ul]
I've tried to similuate this scenario by having one of my co-workers fill out a form, and I do the same, and we do a simultaneous submit of the form and see who error's out.
The error message that MS IIS 5.0 returns is:
Line 109 mentioned in the error message is the line where I call the RS.update command
Any insights?
Earnie Eng
If you are born once, you will die twice
If you are born twice, you will die once
I've got a data-entry web page written with ASP/VBscript. I'm running into the serious problem of being able to have multiple users add data at exactly the same time. Many users in my intranet have complained about an error, which I guess is a multi-user problem.
Here's the specifics:
[ul]
[li]I'm stuck using Access, so there's no point in suggesting MS SQL server or some other nice db system
*sniff*[/li]
[li]using ADODB connection and recordset[/li]
[li]I'm opening my recordset with the parameters as follows:
RS.open sSQL, myConnection, 2, 3 (OpenKeyset, LockOptimistic)[/li]
[li]I run a RS.addnew, set the values of the fields, and then do an RS.update command[/li]
[li]The Addnew/update sequence happens in a for loop, so I'm assuming that multiple users will have this recordset open. (that's why I used lock optimistic)[/li][/ul]
I've tried to similuate this scenario by having one of my co-workers fill out a form, and I do the same, and we do a simultaneous submit of the form and see who error's out.
The error message that MS IIS 5.0 returns is:
Code:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E2F)
[Microsoft][ODBC Microsoft Access Driver]Error in row
/EmployeeBios/Add.asp, line 109
Line 109 mentioned in the error message is the line where I call the RS.update command
Any insights?
Earnie Eng
If you are born once, you will die twice
If you are born twice, you will die once