note 98607 rejected from function.odbc-connect by danbrown
| From: | danbrown@php.net | Date: | Fri, 25 Jun 2010 20:54:14 +0000 |
| Subject: | note 98607 rejected from function.odbc-connect by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-170476@lists.php.net to get a copy of this message | ||
Note Submitter: martinb35 at gmail dot com
----
I have one server where I have installed Apache 2.2, PHP 5.2.9 and my web application.
And on second server I have installed SQL Server 2005 Express.
I am trying to connect the web server with the database using Windows Authentication.
The connection string is:
<?php
$data_source='Driver={SQL Server};Server=server_name\\SQLEXPRESS;
Database=db_name;Trusted_Connection=yes;';
$user='server_name\\user_name';
$password='password';
$conn=odbc_connect($data_source,$user,$password);
?>
But throws the following error:
Error de inicio de sesión del usuario 'NT AUTHORITY\ANONYMOUS LOGON'.
Thanks