Re: How are .ldb files unloaded
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Wed, 15 Nov 2006 06:44:08 -0500
AK wrote:
Problem: I have an application that reads and writes to my database.
I am trying to do some JRO activities (compact the DB) and also
trying to do some FileCopy actions. I have scoured my code (sure you
have, they all say) and all the connections are closed, but I still
see (from my file explorer) that I still have a .ldb on my database
which is preventing the compaction from running. It is as if even
though I have done my "Set adoConnection = Nothing", that there is
still persisting either an open connection OR there is some problem
in removing the lock (or staging of the removal of the lock) on the
database which keeps it extant at the time that I am trying to run my
JRO compaction (which occurs right before my mod main ends.)
Any ideas would be appreciated.
Is there a way to shut down any unknown open connections? (i will use
this in debugging. If using it makes things work then I will need to
rescour for the open connection.
This is probably a permissions problem. All users of the database file must
have read/write permissions for the _folder_ containing the file. The ldb
file needs to be created under the context of the first user to open the
database, modified under the contexts of subsequent users, and deleted under
the context of the last user to exit the database.
Keep in mind that with OLEDB session pooling, connections are kept open for
60 sec. enabling their re-use.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
.
- Follow-Ups:
- Re: How are .ldb files unloaded
- From: AK
- Re: How are .ldb files unloaded
- References:
- How are .ldb files unloaded
- From: AK
- How are .ldb files unloaded
- Prev by Date: Re: URGENT !!! Operation must use an updateable quary
- Next by Date: Re: URGENT !!! Operation must use an updateable quary
- Previous by thread: How are .ldb files unloaded
- Next by thread: Re: How are .ldb files unloaded
- Index(es):
Relevant Pages
|
|