Thanks a lot!
On myn server is running SQLServer 2005.
Now I installed this:
; MSSQL
extension=php_sqlsrv_54_ts.dll
;extension=php_pdo_sqlsrv_54_ts.dll
And this is a part of the script:
- Code: Select all
// Connecten met sqlsrv database
$connectionInfo = array("Database"=>"TekRADIUS", "UID"=>"$SQL_gebruiker", "PWD"=>"$SQL_wachtwoord");
$conn = sqlsrv_connect($SQL_server, $connectionInfo);
if($conn === false){
echo "Error in connection.\n";
die(print_r(sqlsrv_errors(), true));
}
I become this error:
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 ) )