auf welchem System soll dein PHP laufen ? auch windows ?
hier eine Antwort aus PHP.net Manual User comments :
After extensive research trying to get PHP on Linux communicating with SQL Server 2005 and 2008 including support for all Unicode, MAX and XML data types I could not find any open source solutions...yes, I spent a lot of time trying to get FreeTDS to work to no avail.
I found one free solution that runs on Windows which is to use the "SQL Server Driver for PHP" provided by Microsoft (
Microsoft Drivers for PHP for SQL Server). The driver relies on the Microsoft Native Client ODBC drivers for SQL Server 2008 (part of the "Microsoft SQL Server 2008 Native Client" which is downloadable from Microsoft) which is why this solution will not work on anything except Windows.
I did find a solution that works for PHP on Linux but it's not free...use the standard PHP::ODBC lib (free) and the Easysoft ODBC driver for SQL Server (not free, but reasonable by Enterprise standards). You can check out the ODBC driver by going here
Easysoft Data Access and looking for "Easysoft ODBC-SQL Server Driver"
- vielleicht hilft dir ja der mittlere Abschnitt - nachdem ich einige Texte zu ODBC und encoding gelesen habe, scheint das direkt davon abzuhängen, welche Optionen man beim Installieren des ODBC-Treibers wählt - ....
hier noch mehr Infos zum native SQL driver
For more information and extension download please see
http://www.codeplex.com/SQLSRVPHP
They have also blog on
http://blogs.msdn.com/sqlphp/