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
second sample gets from php.net
if you can help me - please help.
i Use W2k+apache 1.3.27 + PHP 4.2.3