Conexão ao SQL Server 2008 através do PHP
Preciso me conectar a um SQL Server 2008 através do PHP (WAMP, versão mais recente). Eu tenho os drivers sqlsrv instalados e configurados e eles aparecem emphpinfo()
.
Estou usando as seguintes linhas para conectar-me ao meu banco de dados, usando Autenticação do Windows:
$serverName = "(local)";
$connectionOptions = array("Database"=>"MyTestDatabase");
$conn = sqlsrv_connect( $serverName, $connectionOptions) or die("Error!");
Eu estou recebendo o seguinte erro:
Array
(
[0] => Array
(
[0] => IMSSP
[SQLSTATE] => IMSSP
[1] => -49
[code] => -49
[2] => This extension requires the Microsoft SQL Server 2011 Native Client. Access the following URL to download the Microsoft SQL Server 2011 Native Client ODBC driver for x86: http://go.microsoft.com/fwlink/?LinkId=163712
[message] => This extension requires the Microsoft SQL Server 2011 Native Client. Access the following URL to download the Microsoft SQL Server 2011 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
)
)
Qualquer ajuda seria ótima, mas seja específico, pois eu realmente não conheço o WAMP, exceto por alguns princípios básico