PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft ADO .NET
VS2005 using Access 2000 database with database password
Forums
Newsgroups
Microsoft DotNet
Microsoft ADO .NET
VS2005 using Access 2000 database with database password
![]() |
VS2005 using Access 2000 database with database password |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi all,
I hope I'm in the right place. I have an existing Access database that has a Jet OLEDB atabase Password and I'm having trouble connecting to it with2005 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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 OLEDB atabase 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 OLEDB atabase 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 > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 OLEDB atabase 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) |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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 OLEDB atabase 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) |
|
|
|
#5 |
|
Guest
Posts: n/a
|
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 OLEDB atabase Password information should appear in theconnection string. Paul ~~~~ Microsoft MVP (Visual Basic) |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 
atabase Password and I'm having trouble connecting to it with
