PC Review


Reply
Thread Tools Rate Thread

Accessing password-protected databases from .Net Framework

 
 
Andrew
Guest
Posts: n/a
 
      8th Oct 2008
Hello,
Any help would be much appreciated.
How can I open a password-protected mdb file from a C# application? What
should the connection string look like? I can open the database if it doesn't
have a password, but once I set a password (using Tools->Security->Set
Database Password) it doesn't work even when I include the password in the
connection string. It gives the error "Invalid user name or password".
It seems to me that the "User ID" and "Password" in the connection string
are the ones that should be used to open Access itself and are strored in the
workgroup information file, but it's not the DATABASE password. Where in the
connection string the database password can be included?
I am using Access 2002.

Thanks for your help.

 
Reply With Quote
 
 
 
 
Tom van Stiphout
Guest
Posts: n/a
 
      8th Oct 2008
On Wed, 8 Oct 2008 01:26:02 -0700, Andrew
<(E-Mail Removed)> wrote:

I always refer to connectionstrings.com for these issues.

-Tom.
Microsoft Access MVP


>Hello,
>Any help would be much appreciated.
>How can I open a password-protected mdb file from a C# application? What
>should the connection string look like? I can open the database if it doesn't
>have a password, but once I set a password (using Tools->Security->Set
>Database Password) it doesn't work even when I include the password in the
>connection string. It gives the error "Invalid user name or password".
>It seems to me that the "User ID" and "Password" in the connection string
>are the ones that should be used to open Access itself and are strored in the
>workgroup information file, but it's not the DATABASE password. Where in the
>connection string the database password can be included?
>I am using Access 2002.
>
>Thanks for your help.

 
Reply With Quote
 
Andrew
Guest
Posts: n/a
 
      9th Oct 2008
Thank you Tom,
I checked out the website and found my answer there...
Much appreciated!!

Andrew

"Tom van Stiphout" wrote:

> On Wed, 8 Oct 2008 01:26:02 -0700, Andrew
> <(E-Mail Removed)> wrote:
>
> I always refer to connectionstrings.com for these issues.
>
> -Tom.
> Microsoft Access MVP
>
>
> >Hello,
> >Any help would be much appreciated.
> >How can I open a password-protected mdb file from a C# application? What
> >should the connection string look like? I can open the database if it doesn't
> >have a password, but once I set a password (using Tools->Security->Set
> >Database Password) it doesn't work even when I include the password in the
> >connection string. It gives the error "Invalid user name or password".
> >It seems to me that the "User ID" and "Password" in the connection string
> >are the ones that should be used to open Access itself and are strored in the
> >workgroup information file, but it's not the DATABASE password. Where in the
> >connection string the database password can be included?
> >I am using Access 2002.
> >
> >Thanks for your help.

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scheduled Tasks and password protected databases? S Davis Microsoft Access Queries 0 7th Apr 2008 05:32 PM
accessing a password-protected document without the password =?Utf-8?B?bmV0dGE=?= Microsoft Word Document Management 1 7th Nov 2007 05:53 AM
Accessing Protected Databases in "Development" Mode =?Utf-8?B?TWloYWxpcw==?= Microsoft Access 3 3rd Feb 2006 10:03 PM
Re: Databases, Password Protected Directories & SSL Thomas A. Rowe Microsoft Frontpage 3 26th Aug 2004 12:52 AM
Password Protected Databases Deborah Microsoft Access Security 1 8th Oct 2003 06:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:07 PM.