473,503 Members | 13,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Password problem of MS Access

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 application or asp.net application) and try
to connect to the database using ado.net i get following error:

ERROR :
Test connection failed because of an error in initializing provider.Cannot
start your application.
The workgroup information file is missing or opened exclusively by another
user.

Can you please identify what is wrong and how can I overcome this. For
security reasons the MS access database file must have password but when I
set password it gives me above error while connecting to it via ado.net and
if I remove the password it works alright.

Thanks,

Arsalan Ahmad
Nov 18 '05 #1
4 1977
Are you changing your connection string to include password when you add it?
"Arsalan Ahmad" <ar*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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 application or asp.net application) and try to connect to the database using ado.net i get following error:

ERROR :
Test connection failed because of an error in initializing provider.Cannot
start your application.
The workgroup information file is missing or opened exclusively by another
user.

Can you please identify what is wrong and how can I overcome this. For
security reasons the MS access database file must have password but when I
set password it gives me above error while connecting to it via ado.net and if I remove the password it works alright.

Thanks,

Arsalan Ahmad

Nov 18 '05 #2
Yes I am.

"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:uP**************@TK2MSFTNGP09.phx.gbl...
Are you changing your connection string to include password when you add it? "Arsalan Ahmad" <ar*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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 application or asp.net application) and

try
to connect to the database using ado.net i get following error:

ERROR :
Test connection failed because of an error in initializing provider.Cannot start your application.
The workgroup information file is missing or opened exclusively by another user.

Can you please identify what is wrong and how can I overcome this. For
security reasons the MS access database file must have password but when I set password it gives me above error while connecting to it via ado.net

and
if I remove the password it works alright.

Thanks,

Arsalan Ahmad


Nov 18 '05 #3
can you post the string? make sure to replace the real password though with
a fake one ;-)
"Arsalan Ahmad" <ar*****@hotmail.com> wrote in message
news:e0**************@TK2MSFTNGP12.phx.gbl...
Yes I am.

"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:uP**************@TK2MSFTNGP09.phx.gbl...
Are you changing your connection string to include password when you add it?
"Arsalan Ahmad" <ar*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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 application or asp.net application)
and
try
to connect to the database using ado.net i get following error:

ERROR :
Test connection failed because of an error in initializing provider.Cannot start your application.
The workgroup information file is missing or opened exclusively by another user.

Can you please identify what is wrong and how can I overcome this. For
security reasons the MS access database file must have password but
when
I set password it gives me above error while connecting to it via

ado.net and
if I remove the password it works alright.

Thanks,

Arsalan Ahmad



Nov 18 '05 #4
On Fri, 30 Apr 2004 10:03:22 +0500, "Arsalan Ahmad" <ar*****@hotmail.com> wrote:

¤ Yes I am.
¤

You need to specify the path to the System.mdw file:

"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=e:\My Documents\Secure db1.mdb;" & _
"Jet OLEDB:Engine Type=5;" & _
"Jet OLEDB:System database=E:\...\System.MDW;", "userID", "password"
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 18 '05 #5

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

Similar topics

1
3334
by: Alex Prokhorov | last post by:
Hello all! In my project I need to grant different users different levels of access to the features of the program. It is clear for me how to do it in case of simple allowed/denied access to the...
10
2668
by: Mike Painter | last post by:
I need a scheme to give people password access to JavaScript quizzes that I have. I've done a lot of programming but almost no JS. Probably one password per person for each of five tests. I...
3
1792
by: | last post by:
I've secured my Access database by creating an MDE file because it contains confidential data. However, I find that anyone can simply use Microsoft Access to link to or import the tables in that...
8
1937
by: David Kistner | last post by:
I'm fairly new to Access (I've worked with Oracle and MySQL in the past). I was asked to build an application for a small office and told that I had to use Access 2002. I was VERY uncomfortable...
0
2368
by: ericellsworth | last post by:
Hi all, I'm wondering if there's a way to remove the password Access (2003) has stored for an ODBC linked table without quitting and reopening the application. I have a set of linked tables...
1
2322
by: mangia | last post by:
I have several .NET websites running successfully on Windows 2003 Sever/IIS6 for over a year now. Today I decided to change my anonymous FTP site access using specific 'granted' or ‘denied’...
0
1132
by: thomasma57 | last post by:
How do you connect an ADO control to an access database that has a password set. Using Jet.OLEBD. mike
8
6242
by: Mai Le | last post by:
Hello, I used Microsoft Access to create a login form with Name Password Access Level Admin and User I would like to let Admin login and open MRB form and User login then open other form like...
2
1190
by: grego9 | last post by:
Is it possible to create a macro that prompts the user to enter a password to access a specific sheet in Excel 2000? I can protect a sheet - but I cannot get a password prompt if the user tries to...
10
1401
by: sheldonlg | last post by:
I got an unusual request. One customer wants a password/access made available to a user that is valid for only, say, ten minutes. I know that I can enforce this by having a revalidation of the...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7298
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1526
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.