Note that there are some explanatory texts on larger screens.

plurals
  1. POConnecting to SQL Server 2008 through PHP
    primarykey
    data
    text
    <p>I need to connect to a SQL Server 2008 through PHP (WAMP, latest version). I have the sqlsrv drivers installed and set up and they do show up in <code>phpinfo()</code>.</p> <p>I'm using the following lines to connect to my DB, using Windows Authentication:</p> <pre><code>$serverName = "(local)"; $connectionOptions = array("Database"=&gt;"MyTestDatabase"); $conn = sqlsrv_connect( $serverName, $connectionOptions) or die("Error!"); </code></pre> <p>And I'm getting the following error:</p> <pre><code>Array ( [0] =&gt; Array ( [0] =&gt; IMSSP [SQLSTATE] =&gt; IMSSP [1] =&gt; -49 [code] =&gt; -49 [2] =&gt; 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] =&gt; 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] =&gt; Array ( [0] =&gt; IM002 [SQLSTATE] =&gt; IM002 [1] =&gt; 0 [code] =&gt; 0 [2] =&gt; [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified [message] =&gt; [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified ) ) </code></pre> <p>Any help would be great, but please be specific since I really don't know my way around WAMP except for a few basics.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload