Sep 15th, 2000, 01:25 PM
Hi, I've been working on a multiuser application. (say 15 users) using Access2000 as a backend database. I connect to the database using the following connection string.
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & GetPath() & ";Persist Security Info=False"
Where GetPath() returns the path to the database.
Now everything works fine when a single application starts up and finishes loading. Another application can then start up and when it's done both applications work fine. My problem occurs when both applications start at the same time. One connects and it seems that while it is connecting to the database (during various form loads, I suppose when the adodc controls connect to the database) the other application just crashes. I suppose the one application is locking access to the database, refusing a connection for the other application.
My question is, how do I bypass this i.e. prevent the other application from crashing. A solution would be to somehow detect that a connection can't be made and wait. But this could be slow. A more suitable solution would be for both applications or all 15 of them to connect to the database simultaneously.
Some help/advice would be much appreciated.
thanks
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & GetPath() & ";Persist Security Info=False"
Where GetPath() returns the path to the database.
Now everything works fine when a single application starts up and finishes loading. Another application can then start up and when it's done both applications work fine. My problem occurs when both applications start at the same time. One connects and it seems that while it is connecting to the database (during various form loads, I suppose when the adodc controls connect to the database) the other application just crashes. I suppose the one application is locking access to the database, refusing a connection for the other application.
My question is, how do I bypass this i.e. prevent the other application from crashing. A solution would be to somehow detect that a connection can't be made and wait. But this could be slow. A more suitable solution would be for both applications or all 15 of them to connect to the database simultaneously.
Some help/advice would be much appreciated.
thanks