Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 10th, 2006, 01:10 AM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to swatishah Send a message via Yahoo to swatishah
Default Connecting to MSAccess

hi

I want to connect to Access database which is password protected, through ASP.Net

Can u please tell me connection string for passing password?

Thanks,
Swati

snshah
 
Old January 16th, 2006, 01:45 AM
Friend of Wrox
 
Join Date: Dec 2005
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nalla Send a message via Yahoo to nalla
Default



Hi,

' without the password
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\inetpub\wwwroot\articleexamples\pubs.mdb

' with the password
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\inetpub\wwwroot\articleexamples\pubs.mdb ; Persist Security Info=False;Jet OLEDB:Database Password=hack

Cheers,

  nalla



 
Old January 17th, 2006, 03:22 PM
Registered User
 
Join Date: Feb 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to dmorganorourke@msn.com
Default

Nalla,
Thank for your reply to this thread. I had subscribed to it with a lot of interest. This was helpful in finding some of the problems that I was having, as well, but the I continue to have a permissions problem because I don't have just a database password but I have implemented access security with user id's and user passwords. I have tried various permutations of your connection string to try to get the User name and password to pass to Jet but with no success. I have relieved the 'Cannot find valid ISAM' error by switching the systemdb in the access registry to the .mdw file used by the target .mdb file but now get the 'You do not have required permissions' error.

Any help is greatly appreciated.
Thanks again,
Dave

David B. Morgan
 
Old January 19th, 2006, 12:08 AM
Friend of Wrox
 
Join Date: Dec 2005
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nalla Send a message via Yahoo to nalla
Default


Hi Dave,
   Did you use ADO data control to get the connection string? if not use ADO data control to create the connnection string without creating manually. assign user id, password in the ADO data control, test connection, copy the connection string from the ADO data control to your vb code editor.

  If your problem has not resolved please post the error number, tell how did you assigh the user id and password to your access database.



nalaka hewage





Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i get data from MSaccess by vc++ stumpted Visual C++ 1 July 2nd, 2006 06:15 PM
Error in Vb with MsAccess wsivasankar Beginning VB 6 1 May 3rd, 2006 09:23 AM
Importing Data to MsAccess ranakdinesh ADO.NET 2 February 24th, 2005 10:03 AM
MSAccess Limitations if any happygv Access 5 April 19th, 2004 08:45 PM
MsAccess vs SqlServer aslyon ADO.NET 2 January 9th, 2004 03:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.