Results 1 to 5 of 5

Thread: Access and ASP problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309
    howdy, not sure if this is the proper place to post this question (if you know a good place for ASP forums pls give me URL)

    Im trying to connect to an access database with an OLE DB connection string. I know the physical path o the database.

    here's an example of the connection string
    Code:
    strConnect = "Provider=Microsoft.Jet.OLEDB.4.0; " & _
    			"Data Source=C:\Datastores\test.mdb;"
    it works fine.. When I give the database a password an try conecting again i get this error :
    Error Type:
    Microsoft JET Database Engine (0x80040E4D)
    Not a valid password.

    Normal I reckon. so I expand the conectinostring to this:
    Code:
    strConnect = "Provider=Microsoft.Jet.OLEDB.4.0; " & _
    			"Data Source=C:\Datastores\test.mdb; DataBase Pasword=pass"
    Now I get this error:
    Error Type:
    Microsoft JET Database Engine (0x80004005)
    Could not find installable ISAM.

    What's the problem ?? pls help me with this.....

  2. #2
    Member
    Join Date
    Aug 2000
    Posts
    60
    Your connection string should look like this.

    "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Db1.mdb;Jet OLEDBatabase Password='pwd'"

    Note the 'Jet OLEDB:' Before the database password parameter, for some unknown reason ADO can't find the provider if you don't specify it on each parameter.
    Barend
    JHB-SA

    Nothing is impossible, except skiing through a revolving door.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Yet another error

    Ok I changed the connectionstring to:
    Code:
    strConnect = "Provider=Microsoft.Jet.OLEDB.4.0; " & _
    			"Data Source=C:\Datastores\test.mdb; Jet OLEDB DataBase Pasword=pass"
    but now it gives me the following error:

    Error Type:
    Microsoft JET Database Engine (0x80040E4D)
    Cannot start your application. The workgroup information file is missing or opened exclusively by another user.


    Any ideas ?

  4. #4
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    Try this as your connection string:

    strConnect = "Provider=Microsoft.Jet.OLEDB.4.0; " & _
    "Data Source=C:\Datastores\test.mdb;Jet OLEDB:DataBase Password=pass"

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Cheers Clunietp

    Your connection String works.... Thanks....
    I'll have to say that Microsoft did some bad documenation on this...
    Also methink's that the interface should be consistent compared to other connection strings.

    oh well, it works (that's all that realy matters)

    thank you...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width