C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » Visual Studio »

Connect to a password protected Access databse


Posted Date: 20 Aug 2008      Posted By: john khoury      Member Level: Bronze     Points: 1   Responses: 2



Is there a good way to connect to a password protected Access databse usig VB.Net?

I tried some of those but it is still giving me errors!!

"Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\mydatabase.mdb;Uid=Admin;Pwd=;"


"Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\mydatabase.mdb;SystemDB=C:\mydatabase.mdw;"

"Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\mydatabase.mdb;Exclusive=1;Uid=admin;Pwd="





Responses

Author: Anil Kumar Pandey    21 Aug 2008Member Level: DiamondRating: 2 out of 52 out of 5     Points: 3

hello,

u can try this

gstrConnstring = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= uid=;pwd";


hope this will work for u.


Thanks
Anil

Thanks & Regards
Anil Kumar Pandey



Author: john khoury    23 Aug 2008Member Level: BronzeRating: 2 out of 52 out of 5     Points: 0

Thank you for your help.

John,



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : how to add combobox in Datagridview controls
Previous : How to Extract the DLL files
Return to Discussion Forum
Post New Message
Category: Visual Studio

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use