Local Environment:
XAMPP 1.8.2
PHP 5.4.31
SQL SERVER R2
The DLLs used
Php_sqlsrv_54_ts.dll
Php_pdo_sqlsrv_54_ts.dll
Current error:
Array ( [0] = =Array ( [0] = =IMSSP [SQLSTATE]=IMSSP [1] =-49[Code]+ =-49 [2] = This extension requires the Microsoft SQL Server Native Client. Access the following URL to download the Microsoft SQL Server Native Client ODBC Driver forX86:http://go.microsoft.com/fwlink/?linkid=163712[message] = This extension requires the Microsoft SQL Server Native Client. Access the following URL to download the Microsoft SQL Server Native Client ODBC Driver forX86:http://go.microsoft.com/fwlink/?linkid=163712 ) )
According to this post address error information, should download x64.
Download microsoft®sql server®2012 Native Client to this address
Official Forum Address: https://social.technet.microsoft.com/Forums/sqlserver/en-US/home?forum=sqldriverforphp&sort= relevancedesc&brandignore=true&searchterm=php5.4+sql+server+2008
PHP5.4 connecting to SQL SERVER 2008