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

search for in the

Installazione> <Introduzione
Last updated: Fri, 18 Jul 2008

view this page in

Installazione/Configurazione

Indice dei contenuti

Requisiti

Requirements for Win32 platforms.

The extension requires the MS SQL Client Tools to be installed on the system where PHP is installed. The Client Tools can be installed from the MS SQL Server CD or by copying ntwdblib.dll from \winnt\system32 on the server to \winnt\system32 on the PHP box. Copying ntwdblib.dll will only provide access through named pipes. Configuration of the client will require installation of all the tools.

Requirements for Unix/Linux platforms.

To use the MSSQL extension on Unix/Linux, you first need to build and install the FreeTDS library. Source code and installation instructions are available at the FreeTDS home page: » http://www.freetds.org/

Nota: In Windows, the DBLIB from Microsoft is used. Functions that return a column name are based on the dbcolname() function in DBLIB. DBLIB was developed for SQL Server 6.x where the max identifier length is 30. For this reason, the maximum column length is 30 characters. On platforms where FreeTDS is used (Linux), this is not a problem.



Installazione> <Introduzione
Last updated: Fri, 18 Jul 2008
 
add a note add a note User Contributed Notes
Installazione/Configurazione
robert dot johnson at icap dot com
24-Sep-2008 02:19
Microsoft have provided a PHP driver for SQL Server 2005.

At the time of this note, the link to it is: http://msdn.microsoft.com/en-us/library/cc296221.aspx

If that doesn't work, search MSDN for "SQL Server 2005 Driver for PHP"
ksamuels at pleazNOSPAM dot sportsendeavors dot COM
19-Jun-2008 01:25
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 09:36
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).

Installazione> <Introduzione
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites