【问题标题】:PHP - Getting MSSQL to work on Windows 10PHP - 让 MSSQL 在 Windows 10 上运行
【发布时间】:2016-03-24 11:41:15
【问题描述】:

我正在尝试在 Windows 10 上通过 PHP 连接到 MSSQL 服务器。但我遇到了一些重大问题,出现以下错误:

Array ( [0] => Array ( [0] => IMSSP [SQLSTATE] => IMSSP [1] => -49 [code] => -49 [2] => This extension requires the Microsoft ODBC Driver 11 for SQL Server. Access the following URL to download the ODBC Driver 11 for SQL Server for x86: http://go.microsoft.com/fwlink/?LinkId=163712 [message] => This extension requires the Microsoft ODBC Driver 11 for SQL Server. Access the following URL to download the ODBC Driver 11 for SQL Server for x86: http://go.microsoft.com/fwlink/?LinkId=163712 ) [1] => Array ( [0] => IM002 [SQLSTATE] => IM002 [1] => 0 [code] => 0 [2] => [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified [message] => [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified ) )

我被要求安装 Microsoft ODBC Driver 11 for SQL Server。但是此驱动程序与 Windows 10 不兼容。我已经安装了 PHP 7 和 PHP 5 的 PHP 驱动程序。如果没有 Microsoft ODBC Driver 11 for SQL Server,两者都无法工作,但这与 Windows 10 不兼容。

有没有人找到解决这个问题的方法?我试过下载这个:https://www.microsoft.com/en-US/download/details.aspx?id=36434

但它与 Windows 10 不兼容。

【问题讨论】:

    标签: php sql-server


    【解决方案1】:

    很难找到,但支持最新内容和 Windows 10 所需的版本是

    MS ODBC 驱动程序 13

    https://www.microsoft.com/en-us/download/details.aspx?id=50420

    【讨论】:

    • 我已经下载了,但它与 Windows 10 不兼容。:( @DanFromGermany
    • 感谢@DanFromGermany,但我仍然收到同样的错误此扩展需要 Microsoft ODBC Driver 11 for SQL Server。
    • 哈哈XD,对不起,我应该更清楚。我现在可以安装驱动程序了。但是我收到 PHP 错误,说我没有驱动程序。
    猜你喜欢
    • 1970-01-01
    • 2021-08-03
    • 2018-01-18
    • 2021-03-11
    • 2019-03-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多