I'm trying to establish a connection between php and SQL Server. Here's the connection function I'm using :
$con = new PDO ("dblib:host=xxx.xxx.xxx.xxx:1433;dbname=xxxx", $dbuser, $dbpwd);
I get the following message : SQLSTATE[28000] Login incorrect. (severity 9)
After having installed freetds-devel, the error has gone but I got an other one : SQLSTATE[01002] Adaptive Server connection failed (severity 9)
N.B.: MSSQL isn't on a UNIX system, but the PHP is.
SOLUTION: I changed the TDS version in the FreeTDS.conf (under [global]) to 7.0 and it worked like a charm
Thanks for your help