Results 1 to 4 of 4

Thread: [RESOLVED] access connection error

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Posts
    147

    Resolved [RESOLVED] access connection error

    ok here is my connection

    VB Code:
    1. <%
    2. Dim objConn
    3.     set objConn = server.createobject("ADODB.connection")
    4.     objConn.Open "driver={microsoft access driver (*.mdb)};" & "dbq=../../products.mdb"
    5. %>

    here is the error i get
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'

    [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x2dbc Thread 0x2300 DBC 0xe4b1cdc Jet'.

    /admin/db.inc, line 4




    im not sure whey its doing this any help appreciated

  2. #2
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: access connection error

    Not sure where your Database Is located but it would be something like this ..

    You can do this to test your path locations from the asp page ..

    Response.Write Server.Mappath("./../../")
    Response.End

    VB Code:
    1. <%
    2. Dim objConn
    3.     set objConn = server.createobject("ADODB.connection")
    4.     objConn.Open "driver={microsoft access driver (*.mdb)}; dbq=" & Server.Mappath("./../../products.mdb")
    5. %>

    Or ..

    VB Code:
    1. <%
    2. Dim objConn
    3.     set objConn = server.createobject("ADODB.connection")
    4.     objConn.Open "driver={microsoft access driver (*.mdb)}; dbq=D:\mywebs\thisweb\database\products.mdb"
    5. %>

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Posts
    147

    Re: access connection error

    oh nice let me try that.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Posts
    147

    Re: access connection error

    sweet that worked i was able to get the correct path, thanks much, that info is good to know for testing too.

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