note 39010 added to function.odbc-connect
| From: | doomkers at lvaei dot lv | Date: | Wed, 14 Jan 2004 14:48:41 +0000 |
| Subject: | note 39010 added to function.odbc-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-63531@lists.php.net to get a copy of this message | ||
I have problem to connect to MsSql via ODBC:
i have 2 types of error
1) if I coonecting as
$conn=odbc_connect($db,$user,$pass);
i have this error:
SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '\'.,
SQL state 28000 in SQLConnect ...
2) $conn=odbc_connect("DRIVER=SQL
Server;SERVER=".$ser.";UID=".$user.";PWD=".$pass.";
DATABASE=".$db.";Address=".$ser.",1433","","");
this error:
SQL error: [Microsoft][ODBC Driver Manager] Invalid string or buffer length,
SQL state S1090 in SQLConnect in
if you can help me - please help.
i Use W2k+apache 1.3.27 + PHP 4.2.3
----
Manual Page -- http://www.php.net/manual/en/function.odbc-connect.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39010
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39010&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39010&report=yes
Search -- http://master.php.net/manage/user-notes.php