Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I have made a portal using .net, C# and ms access database.
The point of the portal is to collect user review and submit it in a database.
So when a single user logs in and does his business, all go well.

But when multiple users are using the portal at the same time, that is to say trying to submit data at same time, there is error.

Any idea what can I do to the database so that it accepts the inputs of users properly or do not accept anything at all if there's a problem? May be something to read that throws light on this subject?

I am using ms access database for user interaction for first time. I have little idea how can access database handle multiple user stress.

Thank you.!!

What I have tried:

I can ask users to access portal at different times. But that is not possible.
Posted
Updated 12-Jun-17 0:16am
Comments
F-ES Sitecore 12-Jun-17 6:16am    
Error messages usually give you a hint as to what the problem is but as you don't think the error message itself is relevant it's unlikely anyone can help you.

1 solution

Don't try to use Access in multiuser - you can get away with it for really small jobs, but it's a single user DB that really isn't designed for multiuser access and which always gives huge amounts of grief when you use as such.

Instead, consider SQL Server or MySQL - they are both multiuser, and if your code is well written, it should be just a case of changing your classes from OleDbConnection and OleDbCommand objects to SqlConnection and SqlCommand, or MySqlConnection and MySqlCommand objects instead.
You then install the appropriate software on a central server for the users, add your DB, and connect from your app to that server.
 
Share this answer
 
Comments
planetz 12-Jun-17 6:21am    
I see. In all, access is not a good choice for multi user. Thank you for the information..!!
OriginalGriff 12-Jun-17 6:39am    
You're welcome!
Maciej Los 12-Jun-17 11:01am    
Frankly speaking i wouldn't be able to say it better.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900