PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET VS2005 using Access 2000 database with database password

Reply

VS2005 using Access 2000 database with database password

 
Thread Tools Rate Thread
Old 09-04-2006, 02:27 AM   #1
Dave Flowers
Guest
 
Posts: n/a
Default VS2005 using Access 2000 database with database password


Hi all,

I hope I'm in the right place. I have an existing Access database that has a
Jet OLEDBatabase Password and I'm having trouble connecting to it with
2005 ASP.NET. If I clear the password I don't have a problem but this is not
an option when this app goes into production. I've tried and tried to set
the password using the add connection wizard but it just doesn't work. I'm
asked for the password every time I try to view the app in IE or drag a
table to a page.

I'm running VS2005 on XP SP2 with SQL 2005, MDAC 2.8, Jet 4 SP8 and Office
Pro 2003.

Does anybody know how I can set this up?

Thanks


  Reply With Quote
Old 09-04-2006, 11:04 AM   #2
Aytaç ÖZAY
Guest
 
Posts: n/a
Default Re: VS2005 using Access 2000 database with database password

Hi,

I advise you not to use wizards. You can set your connection string
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;Jet
OLEDBatabase Password=MyDbPassword;"
like that. Perhaps your wizard missed the password.

Have a nice work,

Aytaç ÖZAY
Software Developer

"Dave Flowers" <dflowers@gmail.com> wrote in message
news:uY7$DT3WGHA.3660@TK2MSFTNGP04.phx.gbl...
> Hi all,
>
> I hope I'm in the right place. I have an existing Access database that has
> a Jet OLEDBatabase Password and I'm having trouble connecting to it with
> 2005 ASP.NET. If I clear the password I don't have a problem but this is
> not an option when this app goes into production. I've tried and tried to
> set the password using the add connection wizard but it just doesn't work.
> I'm asked for the password every time I try to view the app in IE or drag
> a table to a page.
>
> I'm running VS2005 on XP SP2 with SQL 2005, MDAC 2.8, Jet 4 SP8 and Office
> Pro 2003.
>
> Does anybody know how I can set this up?
>
> Thanks
>



  Reply With Quote
Old 10-04-2006, 02:55 PM   #3
Paul Clement
Guest
 
Posts: n/a
Default Re: VS2005 using Access 2000 database with database password

On Sat, 8 Apr 2006 18:27:27 -0700, "Dave Flowers" <dflowers@gmail.com> wrote:

¤ Hi all,
¤
¤ I hope I'm in the right place. I have an existing Access database that has a
¤ Jet OLEDBatabase Password and I'm having trouble connecting to it with
¤ 2005 ASP.NET. If I clear the password I don't have a problem but this is not
¤ an option when this app goes into production. I've tried and tried to set
¤ the password using the add connection wizard but it just doesn't work. I'm
¤ asked for the password every time I try to view the app in IE or drag a
¤ table to a page.
¤
¤ I'm running VS2005 on XP SP2 with SQL 2005, MDAC 2.8, Jet 4 SP8 and Office
¤ Pro 2003.
¤
¤ Does anybody know how I can set this up?

This sounds a little confusing to me. Did you test the connection in the Add Connection Wizard
before adding it to your project?


Paul
~~~~
Microsoft MVP (Visual Basic)
  Reply With Quote
Old 13-04-2006, 05:34 PM   #4
Dave Flowers
Guest
 
Posts: n/a
Default Re: VS2005 using Access 2000 database with database password

Yep I did, and it works fine. It just doesn't save the database password in
the connection string. And the connection string isn't saved in web.config
so I don't know if there a way to edit the string created by the wizard. I'm
trying to use the new provider class built into the 2.0 framework. I've used
the "Provider=Microsoft.Jet.OLEDB.4.0" connection string for years without
any trouble and I can just go back to that if all else fails.

Dave

"Paul Clement" <UseAdddressAtEndofMessage@swspectrum.com> wrote in message
news:9eok329ui5vhomhr9tcubohfa9sm0sms5i@4ax.com...
> On Sat, 8 Apr 2006 18:27:27 -0700, "Dave Flowers" <dflowers@gmail.com>
> wrote:
>
> ¤ Hi all,
> ¤
> ¤ I hope I'm in the right place. I have an existing Access database that
> has a
> ¤ Jet OLEDBatabase Password and I'm having trouble connecting to it with
> ¤ 2005 ASP.NET. If I clear the password I don't have a problem but this is
> not
> ¤ an option when this app goes into production. I've tried and tried to
> set
> ¤ the password using the add connection wizard but it just doesn't work.
> I'm
> ¤ asked for the password every time I try to view the app in IE or drag a
> ¤ table to a page.
> ¤
> ¤ I'm running VS2005 on XP SP2 with SQL 2005, MDAC 2.8, Jet 4 SP8 and
> Office
> ¤ Pro 2003.
> ¤
> ¤ Does anybody know how I can set this up?
>
> This sounds a little confusing to me. Did you test the connection in the
> Add Connection Wizard
> before adding it to your project?
>
>
> Paul
> ~~~~
> Microsoft MVP (Visual Basic)



  Reply With Quote
Old 17-04-2006, 03:26 PM   #5
Paul Clement
Guest
 
Posts: n/a
Default Re: VS2005 using Access 2000 database with database password

On Thu, 13 Apr 2006 09:34:18 -0700, "Dave Flowers" <dflowers@gmail.com> wrote:

¤ Yep I did, and it works fine. It just doesn't save the database password in
¤ the connection string. And the connection string isn't saved in web.config
¤ so I don't know if there a way to edit the string created by the wizard. I'm
¤ trying to use the new provider class built into the 2.0 framework. I've used
¤ the "Provider=Microsoft.Jet.OLEDB.4.0" connection string for years without
¤ any trouble and I can just go back to that if all else fails.
¤

There is an option in the Data Source Configuration Wizard that displays after you have created the
connection. Select "Yes, include sensitive data in the connection string."

Once you select this option the Jet OLEDBatabase Password information should appear in the
connection string.


Paul
~~~~
Microsoft MVP (Visual Basic)
  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off