Architecture mismatch between 32-bit and 64-bit ODBC drivers

前端 未结 1 540
滥情空心
滥情空心 2021-01-25 04:39

I\'ve read most of the discussion surrounding 32-bit/64-bit ODBC driver and application mismatches. I have implemented the suggestions in articles pertaining to the error messag

1条回答
  •  伪装坚强ぢ
    2021-01-25 05:12

    You need to download the Microsoft Access Database Engine 2010 Redistributable from the Microsoft download center. A 32bit driver and 64bit driver are both available. What works?

    If you have a 64bit server with no Office installation then install the 64bit driver.

    If you have a 64bit server with 32bit office installation then install the 32bit driver*.

    If you have a 32bit server with no Office installation then install the 32bit driver.

    If you have a 32bit server with 32bit Office installation then install the 32bit driver.

    *If you are trying to install the 32bit drivers on a 64bit machine then the installer will complain and fail. However the install has an override flag if you install it via the command line (cmd.exe) with administrator privileges.

    AccessDatabaseEngine_x64.exe /passive
    

    ASP Classic Connection Strings

    Access File

    <%
    Set Con = Server.CreateObject("ADODB.Connection")
    Con.Open "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\temp\Database1.mdb;Persist Security Info=False;"
    Con.Close
    %>
    

    Excel File

    <%
    Set Con = Server.CreateObject("ADODB.Connection")
    Con.Open "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\temp\book1.xlsx;Extended Properties=Excel 12.0;"
    Con.Close
    %>
    

    Download both drivers from microsoft download center

    0 讨论(0)
提交回复
热议问题