'Pending delete' on LDB file from ADODB connection to Access 2.x database
- From: "ChrisE" <chris_edwards@xxxxxxxxxxxx>
- Date: 28 Mar 2007 02:56:35 -0700
I have to use a (very old!) commercial Access 2.x multi-user
application that I am not allowed to edit or change in any way. (not
just because I don't know how)
I have therefore added some extra database manipulation feature
through a separate application that I have written using VB6 and
ADODB.
The application works fine until I try using it at the same time as
other users are running the original program.
These are the symptoms:
User 1 connects via Access application - ok
I connect via VB app - ok
User 2 connects via Access application - ok
Users can connect and disconnect the Access app ok at this point
I disconnect my VB app - seems ok
Users 1 & 2 can continue to work ok
BUT, no other users can connect, either via the VB or Access apps.
They get a 'Could not lock file' error.
The only way past this point is for all users to disconnect, at which
point everyone can connect again.
I am connecting using a mode of 'share deny none'.
Database access is via network file shares with full access rights
( it also fails locally, so that isn't the problem)
Database locking mode is 0
Database connection control is 2 (i.e normal - NOT passive shutdown)
Tracing with FILEMON give me a good idea of the reason for this
behaviour.
When I hit the 'ADODB.Connection.Close' command in my app, it attempts
to delete the LDB file.
Since this is opened by the other apps, it puts it into a 'Pending
deletion' state.
Once in this state, all new attempts to open the LDB file will fail,
until the existing processes release their handles.
The Access application does NOT attempt to delete the LDB file at
all, yet my ADO connection ALWAYS tries to delete the LDB, whether it
is the last connection or not.
Does anyone know how to control the LDB file deletion behaviour of
ADODB (e.g. can I switch it off?).
I've tried denying delete rights to the LDB, but that doesn't seem to
be successful and isn't really a very practical solution.
Thanks
.
- Prev by Date: Re: ODBC Not funtioning properly
- Next by Date: RE: Getting a "working" VB6/SQL2000 application functional in Vist
- Previous by thread: Re: ODBC Not funtioning properly
- Next by thread: Re: Jet Database Engine
- Index(es):
Relevant Pages
|
Loading