The odbc_connect is part of the generic ODBC PHP extension. We have a new extension written specifically for SQL Server, called the
SQL Server Driver for PHP (sqlsrv). Try using it and seeing if it resolves this problem.
To connect to SQL Server using the sqlsrv driver, use the
sqlsrv_connect function.
There are two versions of the driver included in the extraction (installation) package. php_sqlsrv.dll is for non-threaded versions of PHP 5.2.x and php_sqlsrv_ts.dll is for the threaded versions of PHP 5.2.x.
Hope this helps.
Jay Kint MSFT