| | |
Problem with VB.NET and MS Access
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2006
Posts: 2
Reputation:
Solved Threads: 0
Hello,
I have a windows application on VB.Net and I connect it to a MS Access database placed on a server. This application is multiuser (50 users aprox reading and writing data), all of them can access the application at the same time with no problem.
This application works Fine but my problem is that the Database gets locked by an user (not the same all the time) at some point. The application can work for several days with no problem, then some day it shows to the user the error that it can not write data to the database.
When this happens I try to open the MSAccess database directly and it tells me that I can only open it as read-only.
To fix this problem I have to close the user's connections to the database (ldb file) on the server, then everything goes normal again.
Can anyone help me with this error? Does anyone has experienced this problem before?
Thank you for your time.
I have a windows application on VB.Net and I connect it to a MS Access database placed on a server. This application is multiuser (50 users aprox reading and writing data), all of them can access the application at the same time with no problem.
This application works Fine but my problem is that the Database gets locked by an user (not the same all the time) at some point. The application can work for several days with no problem, then some day it shows to the user the error that it can not write data to the database.
When this happens I try to open the MSAccess database directly and it tells me that I can only open it as read-only.
To fix this problem I have to close the user's connections to the database (ldb file) on the server, then everything goes normal again.
Can anyone help me with this error? Does anyone has experienced this problem before?
Thank you for your time.
Doesn't Access have some sort of limit on concurrent usage or something? It seems like I remember it not liking to be used in a true "multi user client-server" setup. Do you know if when it gets locked, if both users were trying to access the same table at the same time or something? Are there any options from within Access regarding locks and concurrent usage? Or could you implement via the VB app software locks that would avoid accessing the same data at the same time?
Just some thoughts...good luck!
Just some thoughts...good luck!
•
•
Join Date: Feb 2006
Posts: 2
Reputation:
Solved Threads: 0
Maybe is something about Concurrency, I already placed some logic to handle this situations, I have to check if something is missing. But the weird thing is when the database gets lock, just one user has it and no one else can write on it (Like open exclusively). I'm not able to see if two users tried to write the same table and the same record at the same time.
Thank you for your suggestions
Thank you for your suggestions
![]() |
Similar Threads
- ASP.NET - session objects Problem (ASP.NET)
- Saving information from .NET webcontol into access(database) (ASP.NET)
- problem in sending mail form web application (ASP.NET)
- Problem with NEWBIE VB.NET installation... (Visual Basic 4 / 5 / 6)
- ADO.Net SQL UPDATE using OleDBAdapter (C#)
- dhtml menu and flash (JavaScript / DHTML / AJAX)
Other Threads in the VB.NET Forum
- Previous Thread: Exception Data is Null. This method or property cannot be called on Null values.
- Next Thread: how to create stock chart using vb.net?
| Thread Tools | Search this Thread |
.net .net2008 2008 access account advanced application array basic beginner browser button buttons center click code combo cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic excel exists fade filter forms ftp generatetags html images input insert intel internet listview map mobile module monitor msaccess net number objects open panel passingparameters pdf picturebox picturebox2 port position print printing problem regex right-to-left save search searchvb.net select serial settings shutdown socket sqldatbase sqlserver survey table temperature textbox timer timespan transparency txttoxmlconverter update user usercontol vb vb.net vb.netformclosing()eventpictureboxmessagebox vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode xml year





