Conectando a SQL Server 2008 a través de PHP
Necesito conectarme a un SQL Server 2008 a través de PHP (WAMP, última versión). Tengo instalados y configurados los controladores sqlsrv y aparecen enphpinfo()
.
Estoy usando las siguientes líneas para conectarme a mi DB, usando la autenticación de Windows:
$serverName = "(local)";
$connectionOptions = array("Database"=>"MyTestDatabase");
$conn = sqlsrv_connect( $serverName, $connectionOptions) or die("Error!");
Y obtengo el siguiente error:
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
)
)
Cualquier ayuda sería excelente, pero por favor sea específico, ya que realmente no conozco bien a WAMP, excepto por algunos conceptos básicos.