用于SQL Server的ODBC驱动程序11

时间:2017-09-13 09:09:08

标签: php sql-server odbc

我正在使用安装在远程桌面上的SQL Server 2008。我正在尝试使用PHP访问它。

我已经下载了PHP驱动程序。 phpinfo中的已注册PHP流包括sqlsrv。

因此,如果弹出以下错误,则应在我的系统或远程桌面中安装ODBC驱动程序。我使用的是PHP 7.0.8版,所以我需要ODBC Driver 11或13?

Connection failureArray
(
    [0] => Array
        (
            [0] => IMSSP
            [SQLSTATE] => IMSSP
            [1] => -49
            [code] => -49
            [2] => This extension requires the Microsoft ODBC Driver 11 or 13 for SQL Server. Access the following URL to download the ODBC Driver 11 or 13 for SQL Server for x86: http://go.microsoft.com/fwlink/?LinkId=163712
           [message] => This extension requires the Microsoft ODBC Driver 11 or 13 for SQL Server. Access the following URL to download the ODBC Driver 11 or 13 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
        )

)

0 个答案:

没有答案