我在使用sqlsrv_connect
在PHP中使用Windows 2003服務器上的sqlsrv連接mssql server 2008時出現以下錯誤。 Microsoft SQL Server 2008 Native Client已安裝。在IIS 6.0 Web服務器運行在Windows 2003服務器上連接到mssql server 2008時出現sqlsrv錯誤
這裏的php.ini文件內容
=======================
[PHP_SQLSRV]
extension=php_sqlsrv_53_ts_vc9.dll
[PHP_PDO_SQLSRV]
extension=php_pdo_sqlsrv_53_nts_vc6.dll
php_pdo_sqlite.dll
== =====================
Array
(
[0] => Array
(
[0] => IMSSP
[SQLSTATE] => IMSSP
[1] => -49
[code] => -49
[2] => This extension requires the Microsoft SQL Server 2012 Native Client. Access the following URL to download the Microsoft SQL Server 2012 Native Client ODBC driver for x86: http://go.microsoft.com/fwlink/?LinkId=163712
[message] => This extension requires the Microsoft SQL Server 2012 Native Client. Access the following URL to download the Microsoft SQL Server 2012 Native Client ODBC driver 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
)
)
[X64程序包直接鏈接](http://go.microsoft.com/fwlink/?LinkID=239648&clcid=0x409) – Ayman