|
-
May 28th, 2009, 11:35 PM
#1
ADO Connection string not working.
I have the following connection string that can't open my database. Does anybody here know what's wrong with this string?
Code:
char strConnAccess[] = "Driver = {Microsoft Access Driver (*.mdb)};DBQ = C:\\DC2004.mdb;";//
I know my program works because I can open it with
Code:
char strConnJet[] = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\\DC2004.mdb; User Id=admin; Password="; //Works
I'm using the string examples from:
http://www.sqlstrings.com/MS-Access-...on-strings.htm
-
May 29th, 2009, 03:18 AM
#2
Re: ADO Connection string not working.
Just as a guess: try to remove all unneeded white spaces from your connection string.
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|