Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
118619 Points
18779 Posts
May 03, 2012 01:39 AM|LINK
bbcompent1 Try to make sure that your filename for the database is correct and you're using the correct path. Like this: string connectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db.accdb;Persist Security Info=True;"; if its in the root, in the data directory: string connectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|db.accdb;Persist Security Info=True;";
Try to make sure that your filename for the database is correct and you're using the correct path. Like this:
string connectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db.accdb;Persist Security Info=True;"; if its in the root, in the data directory:
string connectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|db.accdb;Persist Security Info=True;";
My addition——
For accdb database,I think it's better to use ACE driver instead of Oledb4.0。For connection string,you can find more at:
http://www.connectionstrings.com/access-2007
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Database connection help, retreive email addresses from database, no connection.
May 03, 2012 01:39 AM|LINK
My addition——
For accdb database,I think it's better to use ACE driver instead of Oledb4.0。For connection string,you can find more at:
http://www.connectionstrings.com/access-2007