1

I want to use an Access database file in my C# project. When I add it as a new Data Source all goes well until I try to test the connection. Then I get the message:

Cannot start your application. The workgroup information file is missing or opened exclusively by another user.

The file is password protected and an MDW file is used. So how can I add the file as a data source and use the workgroup info file as well?

Thanks

2
  • What is your connection string? The MDW location can be specified there. Commented Sep 29, 2012 at 0:22
  • Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\newUser_be.mdb;User ID="Jim" But it wont let me edit the connection string. Unless its done some other way... Commented Sep 29, 2012 at 0:24

1 Answer 1

5

Here is an example connection string specifying where the .MDW file is located:

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\mydatabase.mdb;
    Jet OLEDB:System Database=system.mdw;User ID=myUsername;Password=myPassword;
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks RedFilter! That was what I needed/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.