Error accessing Access DB

  • Thread starter Thread starter Mantorok
  • Start date Start date
M

Mantorok

Hi all

I'm trying to connect to an Access db that uses workgroups, here is the connection
string:

"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=database.mdb;Jet OLEDB:System
Database = system.mdw;User Id=infadmin;Jet OLEDB Database Password=******"

The error is: "not a valid account name or password."

I've confirmed the user id and password, any ideas?

Kev
 
I won't claim to know much about Access, but a quick google seemed to
indicate that this might be related to the workgroup id file.

You may need to specify this file in your connection string, substituting
system.mdw with the correct file, if needed.

Jet OLEDB:System Database=system.mdw;
 
I'm afraid I'm out of ideas.

Try the newsgroups

microsoft.public.access
microsoft.public.access.security
microsoft.public.dotnet.framework.adonet
 
The connection string is super anal.

Every space , semi colon must be perfect.

You also need to try the different versions at connectionstrings.com

Personally, I've never used the system.mdw thing.

Also, try a fully qualified path name for the mdb file
Data Source=c:\mydatabase.mdb
 
Back
Top