PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Instalacja> <Wstęp
Last updated: Fri, 27 Jun 2008

view this page in

Instalacja/Konfiguracja

Spis treści

Wymagania

Wymagania dla platform Win32.

Rozszerzenie wymaga aby w systemie, w którym jest zainstalowany PHP, znajdowały się narzędzia MS SQL Client Tools. Client Tools można zainstalować z płyty instalacyjnej serwera MS SQL Server lub też skopiować plik ntwdblib.dll (często w wersji 2000.80.194.0) z katalogu \winnt\system32 systemu, na którym jest uruchomiony serwer do katalogu \winnt\system32 systemu, na którym znajduje się PHP. Skopiowanie ntwdblib.dll powinno umożliwić tylko dostęp poprzez potoki nazwane. Pełna konfiguracja klienta wymaga instalacji wszystkich narzędzi Client Tools.

Wymagania dla platform Unix/Linux.

Aby używać rozszerzenia MSSQL w Unix/Linux, należy najpierw skompilować i zainstalować bibliotekę FreeTDS. Kod źródłowy i instrukcje instalacji są dostępne na witrynie FreeTDS: » http://www.freetds.org/

Informacja: W Windows jest używana DBLIB Microsoftu. Funkcje, które zwracają nazwy kolumn używają wewnętrznej funkcji DBLIB dbcolname(). DBLIB została zaprojektowana dla SQL Server 6.x gdzie maksymalna długość identyfikatora wynosiła 30. Z tego powodu, maksymalna długość zwracanej nazwy kolumny wynosi 30 znaków. Na platformach gdzie używa się FreeTDS (Linux), nie ma takiego problemu.



add a note add a note User Contributed Notes
Instalacja/Konfiguracja
ksamuels at pleazNOSPAM dot sportsendeavors dot COM
18-Jun-2008 10:55
I was having a difficult time getting four Windows 2003 Servers to connect to an MSSQL database with PHP 5.2.5 and IIS after already getting one such server to connect with no problems.  I even copied the entire php directory and dlls to the other servers exactly as they were on the working server but continually got "Unable to connect to server" errors.  The fix was to delete the ntwdblib.dll from the PHP directory.  It was already in the C:\windows\system32 directory and this did not cause a problem on the first server but did on all the others.
jklowden at freetds dot org
27-May-2008 07:06
The 30-character limitation  does not apply to the FreeTDS db-lib implementation.  FreeTDS returns column names of any length supported by the server (and protocol).

Instalacja> <Wstęp
Last updated: Fri, 27 Jun 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites