Hello IIS community , first of all thanks you to take the time to read my post :) .
Si I've a problem with IIS , with my php script :
function dbOpen($dbName) {
if (!$this->sqlLink) {
include_once("$this->config");
global $shardDbName;
global $accountDbName;
global $accountDbPWD;
global $mssql_server;
$db = array("Database"=>"$dbName", "UID"=>"$accountDbName", "PWD"=>"$accountDbPWD");
$this->mssql_server = $mssql_server;
$this->sqlLink = sqlsrv_connect($mssql_server, $db);
if (!$this->sqlLink) {
edie(print_r(sqlsrv_errors(), true));
}
return;
} else {
exit;
}
}
And I've 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 ) )
Mixizi
3 Posts
SQL Native client
Dec 31, 2012 10:58 AM|LINK
Hello IIS community , first of all thanks you to take the time to read my post :) .
Si I've a problem with IIS , with my php script :
function dbOpen($dbName) { if (!$this->sqlLink) { include_once("$this->config"); global $shardDbName; global $accountDbName; global $accountDbPWD; global $mssql_server; $db = array("Database"=>"$dbName", "UID"=>"$accountDbName", "PWD"=>"$accountDbPWD"); $this->mssql_server = $mssql_server; $this->sqlLink = sqlsrv_connect($mssql_server, $db); if (!$this->sqlLink) { edie(print_r(sqlsrv_errors(), true)); } return; } else { exit; } }And I've this error :
I've IIS 7 , SQL Server 2008 R2 Developper.
Thanks for you help ;)