note 98607 added to function.odbc-connect
| From: | martinb35 at gmail dot com | Date: | Fri, 25 Jun 2010 20:48:55 +0000 |
| Subject: | note 98607 added to function.odbc-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170475@lists.php.net to get a copy of this message | ||
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
----
Server IP: 69.147.83.197
Probable Submitter: 190.138.62.37
----
Manual Page -- http://www.php.net/manual/en/function.odbc-connect.php
Edit -- https://master.php.net/note/edit/98607
Del: integrated -- https://master.php.net/note/delete/98607/integrated
Del: useless -- https://master.php.net/note/delete/98607/useless
Del: bad code -- https://master.php.net/note/delete/98607/bad+code
Del: spam -- https://master.php.net/note/delete/98607/spam
Del: non-english -- https://master.php.net/note/delete/98607/non-english
Del: in docs -- https://master.php.net/note/delete/98607/in+docs
Del: other reasons-- https://master.php.net/note/delete/98607
Reject -- https://master.php.net/note/reject/98607
Search -- https://master.php.net/manage/user-notes.php