473,385 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Problem connecting to password protected Access file

Hi
I am trying to connect to a password protected access file from VB.NET.
I have no problem in connecting to Access, if I remove the password.

This is what I am doing:
In the server explorer, I choose "Add a connection"
Choose "Microsoft Jet 4.0 OLEDB Provider" in the provider tab
Selected the access file in the next tab
Left Username as Admin and typed the password.
Now when I try to test connection, I am getting this error message:
"Test connection failed becaues of an error in initializing provider. Cannot
start your application. The workgroup information file is missing or opened
exclusively by another user".

I am 100% sure, the password is correct, the file is not opened by any one.
I also created a workgroup information file and saved it under the same
folder that the access db is in.

If I remove the access password, I am able to connect. After creating the
data connection, I protected the access file with password. Now when I try to
refresh the data connection from Server Explorer, I am getting a popup form,
that asks for password and PROVIDER STRING. I am not sure what the Provider
stirng is, so I am always getting the above mentioned error message.

I would really appreciate if some one could help me out.

Thanks
Karthik
Nov 21 '05 #1
4 7545
On Thu, 27 Oct 2005 08:55:07 -0700, "kthiagar" <kt******@discussions.microsoft.com> wrote:

¤ Hi
¤ I am trying to connect to a password protected access file from VB.NET.
¤ I have no problem in connecting to Access, if I remove the password.
¤
¤ This is what I am doing:
¤ In the server explorer, I choose "Add a connection"
¤ Choose "Microsoft Jet 4.0 OLEDB Provider" in the provider tab
¤ Selected the access file in the next tab
¤ Left Username as Admin and typed the password.
¤ Now when I try to test connection, I am getting this error message:
¤ "Test connection failed becaues of an error in initializing provider. Cannot
¤ start your application. The workgroup information file is missing or opened
¤ exclusively by another user".
¤
¤ I am 100% sure, the password is correct, the file is not opened by any one.
¤ I also created a workgroup information file and saved it under the same
¤ folder that the access db is in.
¤
¤ If I remove the access password, I am able to connect. After creating the
¤ data connection, I protected the access file with password. Now when I try to
¤ refresh the data connection from Server Explorer, I am getting a popup form,
¤ that asks for password and PROVIDER STRING. I am not sure what the Provider
¤ stirng is, so I am always getting the above mentioned error message.
¤
¤ I would really appreciate if some one could help me out.

If you are using user-level security (and not a database password) then you will probably need to
specify the path to the system.mdw (workgroup information file) in your connection string. If you
click on the All tab in the Data Link Properites dialog you can specify the path in the Jet
OLEDB:System database property.
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 21 '05 #2
Thanks Paul, but I am not using user level security. I thought if I use user
level security, the problem would be solved, but it doesnt look so.

So I removed the user level security.

Karthik

"Paul Clement" wrote:
On Thu, 27 Oct 2005 08:55:07 -0700, "kthiagar" <kt******@discussions.microsoft.com> wrote:

¤ Hi
¤ I am trying to connect to a password protected access file from VB.NET.
¤ I have no problem in connecting to Access, if I remove the password.
¤
¤ This is what I am doing:
¤ In the server explorer, I choose "Add a connection"
¤ Choose "Microsoft Jet 4.0 OLEDB Provider" in the provider tab
¤ Selected the access file in the next tab
¤ Left Username as Admin and typed the password.
¤ Now when I try to test connection, I am getting this error message:
¤ "Test connection failed becaues of an error in initializing provider. Cannot
¤ start your application. The workgroup information file is missing or opened
¤ exclusively by another user".
¤
¤ I am 100% sure, the password is correct, the file is not opened by any one.
¤ I also created a workgroup information file and saved it under the same
¤ folder that the access db is in.
¤
¤ If I remove the access password, I am able to connect. After creating the
¤ data connection, I protected the access file with password. Now when I try to
¤ refresh the data connection from Server Explorer, I am getting a popup form,
¤ that asks for password and PROVIDER STRING. I am not sure what the Provider
¤ stirng is, so I am always getting the above mentioned error message.
¤
¤ I would really appreciate if some one could help me out.

If you are using user-level security (and not a database password) then you will probably need to
specify the path to the system.mdw (workgroup information file) in your connection string. If you
click on the All tab in the Data Link Properites dialog you can specify the path in the Jet
OLEDB:System database property.
Paul
~~~~
Microsoft MVP (Visual Basic)

Nov 21 '05 #3
I have encountered the same problem and got help from ADO.net newsgroup,
below is the information I got:

"Try this string instead:
'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;Jet
OLEDB:Database Password=MyDbPassword;'.""

And it solved my problem,

Peter
Nov 21 '05 #4
On Thu, 27 Oct 2005 13:35:01 -0700, "kthiagar" <kt******@discussions.microsoft.com> wrote:

¤ Thanks Paul, but I am not using user level security. I thought if I use user
¤ level security, the problem would be solved, but it doesnt look so.
¤
¤ So I removed the user level security.
¤

OK, so then if you're using a database password then it should be specified in the Jet
OLEDB:Database Password in the list on the All tab.

If you're not using any security then either Admin with a blank password, or no user ID and password
at all (on the Connection tab) should work.
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Ian | last post by:
I'm hoping someome more knowledgeable than I can help me with a problem I'm having. I have been writing a system using PHP and MySQL and had it running for testing purposes on my own pc which is...
2
by: news | last post by:
We currently have our mySQL server on the same box as the Apache server. For security and load balancing, we're going to be moving the mySQL server to another box. We're already using a single...
2
by: Marc Stiegele | last post by:
Hello, I have a problem with the IBM DB2 UDB XML Extender. I`m working on a iSeries 400 server (AS/400, V5R1) with a integrated DB2 (my client is NT 4.0 Service Pack 1 with JDK1.1.8). I want to...
3
by: Chris | last post by:
I have a frontend that has some tables which are linked to a backend. Now I want to make the backend password protected and when I try to run it password protected I can't open it. In the first...
3
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be...
4
by: Arsalan Ahmad | last post by:
Hi all, I have a MS Access database (say abc.mdb). I have set the database password and admin password to "abcdefg" (say). The problem is that when I create a simple application (a form-based...
5
by: Sebastian | last post by:
I'm using the following code to connect to an access 2000 database. (with reference to adodb) Public DBvar As New ADODB.Connection() DBvar.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data...
1
by: Chris Love | last post by:
I have already asked this, but no one seems to know the answer. Here is the timeline. I wanted to use the membership/roles functionality in a site. I got all sorts of errors trying to get this...
0
by: Rafa | last post by:
Hello, First, sorry because I am spanish and my english are not good. My problem is that i am trying to work with profiles in visual studio 2005, but i have an error. the error is that: ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.