We have a SLES 11 sp2 web server that we need to connect to a SQL Server 2005 database. We are running PHP 5.3. From our research there are two ways we could connect to SQL Server 2005 with php5.3; odbc_connect or mssql_connect, but we have not had any success doing this with either. For the ODBC option we can get php5-odbc installed, but are not able to find a driver compatible with SLES 11. The php5-mssql option does not appear in YAST.
What is the best way to connect to SQL Server 2005 with SLES 11 sp2?
Package Stable/(Latest) Local
pdo_sqlsrv 3.0.1 (stable) Microsoft Drivers for PHP for SQL Server (PDO_SQLSRV)
sqlsrv 3.0.1 (stable) Microsoft Drivers for PHP for SQL Server (SQLSRV)[/CODE]
I don’t know what it will require to compile, though.