Failed to acces the SQL Server table from MS Access by ODBC Link T

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Failed to acces the SQL Server table from MS Access by ODBC Link T

    My MS Access database use "link table" to connect the SQL Server by ODBC. But I failed to access the table which link to SQL Server with the following error in ASP.

    Microsoft JET Database Engine error '80004005'
    ODBC--connection to '[ConnectionString]' failed.
    /test.asp, line 21


    My connection string in ASP is as following:

    ConnStr = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & Server.MapPath("abc.mdb") & ";"

    How can I fix the problem?


    Thank you very much.

    TT Guest

  2. Similar Questions and Discussions

    1. MS Access with Mysql link table connection failed
      CF error: ODBC--connection to 'ProdTracking' failed. In our MS access table we have a "link table" to the MySql database on a Linux box. We...
    2. odbc failed to verify please help!!!!!!
      Hi all, I have a problem regarding an odbc setup using cold fusion administrators. Version of Cold Fusion used : professional 5
    3. Windows 2003 Server ODBC Error -Not a valid password - connecting to MS Access DB
      We are currently busy moving our website from a NT4 Server to a Windows 2003 Server. One of the site are making use of an MS access DB. A DSN was...
    4. Export UniData database to SQL Server 2000 using DTS via ODBC driver failed
      Dear all, I've downloaded, installed, and running UniData 6.0 for Windows beautifully in the last three hours or so, during which time, I've...
    5. SQL Server 2000, Exchange, COM-Add in for Outlook XP; Dynamically link ACCESS xp & SQL SERVER???
      Can SQL Server 2000 manage the contacts in Exchange? Is there any connectivity between SQL Server and Outlook XP? Furthermore, can SQL Server...
  3. #2

    Default Failed to acces the SQL Server table from MS Access by ODBC Link T

    My MS Access database use "link table" to connect the SQL Server by ODBC. But I failed to access the table which link to SQL Server with the following error in ASP.

    Microsoft JET Database Engine error '80004005'
    ODBC--connection to '[ConnectionString]' failed.
    /test.asp, line 21


    My connection string in ASP is as following:

    ConnStr = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & Server.MapPath("abc.mdb") & ";"

    How can I fix the problem?


    Thank you very much.
    TT Guest

  4. #3

    Default Re: Failed to acces the SQL Server table from MS Access by ODBC Link T

    TT wrote:
    > My MS Access database use "link table" to connect the SQL Server by
    > ODBC. But I failed to access the table which link to SQL Server with
    > the following error in ASP.
    >
    > Microsoft JET Database Engine error '80004005'
    > ODBC--connection to '[ConnectionString]' failed.
    > /test.asp, line 21
    >
    >
    > My connection string in ASP is as following:
    >
    > ConnStr = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" &
    > Server.MapPath("abc.mdb") & ";"
    >
    > How can I fix the problem?
    >
    >
    You probably failed to provide a SQL Server user name and password in the
    connection string for the linked table (using NT Authentication will
    probably not work, because your asp code is running under the context of the
    IUSR_Machinename account).

    Bob Barrows

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows [MVP] Guest

  5. #4

    Default Re: Failed to acces the SQL Server table from MS Access by ODBC Li

    You cannot pass the username and password via the connection string used to
    connect to the Jet database. You have to save the password information in
    the actual link to the sql server table. See an Access newsgroup for
    information about doing this if you cannot get it from online help.

    Bob Barrows

    TT wrote:
    > ##### How to set the connection string? #####
    >
    > 1) I have checked the save password check box when I use odbc to link
    > the SQL server tables.
    >
    > Error:
    > Microsoft JET Database Engine error '80004005'
    > ODBC--connection to '[ConnectionString]' failed.
    > /index.asp, line 21
    >
    > 2) I have tried to add the user name and password (User
    > Id=sa;Password=password) in the connection string
    > ConnStr = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" &
    > Server.MapPath("abc.mdb") & ";User Id=sa;Password=password"
    >
    > However, error returns:
    > Microsoft JET Database Engine error '80040e4d'
    > Cannot start your application. The workgroup information file is
    > missing or opened exclusively by another user. index.asp, line 17
    >
    > Any idea?
    > Thank you very much.
    >
    >
    > "Bob Barrows [MVP]" wrote:
    >
    >> TT wrote:
    >>> My MS Access database use "link table" to connect the SQL Server by
    >>> ODBC. But I failed to access the table which link to SQL Server with
    >>> the following error in ASP.
    >>>
    >>> Microsoft JET Database Engine error '80004005'
    >>> ODBC--connection to '[ConnectionString]' failed.
    >>> /test.asp, line 21
    >>>
    >>>
    >>> My connection string in ASP is as following:
    >>>
    >>> ConnStr = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" &
    >>> Server.MapPath("abc.mdb") & ";"
    >>>
    >>> How can I fix the problem?
    >>>
    >>>
    >> You probably failed to provide a SQL Server user name and password
    >> in the
    >> connection string for the linked table (using NT Authentication will
    >> probably not work, because your asp code is running under the
    >> context of the
    >> IUSR_Machinename account).
    >>
    >> Bob Barrows
    >>
    >> --
    >> Microsoft MVP - ASP/ASP.NET
    >> Please reply to the newsgroup. This email account is my spam trap so
    >> I
    >> don't check it very often. If you must reply off-line, then remove
    >> the "NO SPAM"
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows [MVP] Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139