Welcome Guest, Not a member yet? Register   Sign In
Unable to make database connection to MSSQL

I'm running CI 2.0.2 and PHP 5.3.2 on Redhat 6 and need to query a legacy MSSQL 2005 table.

My old environment had CI 2.0.2 and PHP 5.2.8 running on IIS6 and the connection was made as expected. With 5.3.2 and Redhat the MSSQL connection cannot be made and I get a blank screen in my CI app.

Some mentioned that I need the Microsoft SQL Server 2005 Driver:

This driver is for PHP apps running on Windows. Our new environment runs on Redhat.

Is there a solution that doesn't tie me to a version of PHP pre 5.3?


The php_mssql.dll is obseleted and php ver 5.3.x doesn't support. You may have to rewrite to Ms SQL driver availble in the microsoft site.

I also have the same problem Blank screen..! Did you find any solutions..?


[eluser]Frank Wong[/eluser]
On Ubuntu php5, I had to install the database driver php5-sybase to connect to mssql. I am assuming it should be the same for Redhat, but can't verify as I don't use Redhat.

None of those drivers from Microsoft work correctly on Linux.

Theme © iAndrew 2016 - Forum software by © MyBB