【发布时间】: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