Re: Problem accessing Access/Jet databse: Could not lock file
From: Kevin Yu [MSFT] (v-kevy_at_online.microsoft.com)
Date: 05/18/04
- Next message: Herman Lammers: "autoincrement"
- Previous message: Miha Markic [MVP C#]: "Re: Add Column in DataTable at a specified position"
- In reply to: Michiel Doeven: "Re: Problem accessing Access/Jet databse: Could not lock file"
- Next in thread: Michiel Doeven: "Re: Problem accessing Access/Jet databse: Could not lock file"
- Reply: Michiel Doeven: "Re: Problem accessing Access/Jet databse: Could not lock file"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 18 May 2004 07:50:38 GMT
Hi Michiel,
First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you received an error which says "Could
not lock file" when opening a connection to an Access database on a network
shared folder. If there is any misunderstanding, please feel free to let me
know.
Since the .mdb file can be opened using Access and everything can be done,
I think there might be something wrong with the way you open it in your
code. If you're using an OleDbConnection object, could you show us your
connection string? You can also try to use the following one:
Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=\\ServerName\Folder\Data.mdb;Mode=Share Deny None;Persist Security
Info=False
Please also check if the file has been opened by other users. If the file
is open, there will be a .ldb file with the same name as the .mdb file in
the same folder. If that file exists, please delete it and try to connect
again.
HTH.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
- Next message: Herman Lammers: "autoincrement"
- Previous message: Miha Markic [MVP C#]: "Re: Add Column in DataTable at a specified position"
- In reply to: Michiel Doeven: "Re: Problem accessing Access/Jet databse: Could not lock file"
- Next in thread: Michiel Doeven: "Re: Problem accessing Access/Jet databse: Could not lock file"
- Reply: Michiel Doeven: "Re: Problem accessing Access/Jet databse: Could not lock file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|