Re: How are .ldb files unloaded
- From: "AK" <nospam@xxxxxxxxxxx>
- Date: Wed, 15 Nov 2006 09:17:47 -0600
Bob,
Thanks!
Here is my connection string.
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Password=MyPassword;User ID=MyUserId;" & _
"Data Source=" & My_DatabasePath & ";" & _
"Jet OLEDB:Engine Type=5;" & _
"Jet OLEDB:Database Password=MyDataBasePassword;" & _
"Persist Security Info=True;" & _
"Jet OLEDB:System database=" & My_DatabasePath_MDW_SecurityFilePath &
";" & _
"Jet OLEDB:Encrypt Database=True"
Are your saying that I need a Mode=ReadWrite somewhere in here?
Like at the last lines (as in):
"Jet OLEDB:System database=" & My_DatabasePath_MDW_SecurityFilePath &
";" & _
"Jet OLEDB:Encrypt Database=True;" & _
"Mode=ReadWrite"
Did I put it in correctly?
Kinda real new to all this!
Thanks
AK
"Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx> wrote in message
news:uDe9YtKCHHA.1300@xxxxxxxxxxxxxxxxxxxxxxx
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: Bob Barrows [MVP]
- Re: How are .ldb files unloaded
- References:
- How are .ldb files unloaded
- From: AK
- Re: How are .ldb files unloaded
- From: Bob Barrows [MVP]
- How are .ldb files unloaded
- Prev by Date: Re: URGENT !!! Operation must use an updateable quary
- Next by Date: Re: How are .ldb files unloaded
- Previous by thread: Re: How are .ldb files unloaded
- Next by thread: Re: How are .ldb files unloaded
- Index(es):
Relevant Pages
|
|