Source of: /manual/en/mssql.requirements.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/mssql.setup.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'mssql.requirements.php',
1 => 'Requirements',
),
'up' =>
array (
0 => 'mssql.setup.php',
1 => 'Installing/Configuring',
),
'prev' =>
array (
0 => 'mssql.setup.php',
1 => 'Installing/Configuring',
),
'next' =>
array (
0 => 'mssql.installation.php',
1 => 'Installation',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="mssql.requirements" class="section">
<h2 class="title">Requirements</h2>
<p class="para">
Requirements for Win32 platforms.
</p>
<p class="para">
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
<var class="filename">ntwdblib.dll</var> from
<var class="filename">\winnt\system32</var> on the server to
<var class="filename">\winnt\system32</var> on the PHP box.
Copying <var class="filename">ntwdblib.dll</var> will only provide access
through named pipes.
Configuration of the client will require installation of all the tools.
</p>
<p class="para">
Requirements for Unix/Linux platforms.
</p>
<p class="para">
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:
<a href="http://www.freetds.org/" class="link external">» http://www.freetds.org/</a>
</p>
<blockquote><p><b class="note">Note</b>:
On Windows, the DBLIB from Microsoft is used. Functions that return a
column name are based on the <i>dbcolname()</i> 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.
<br />
</p></blockquote>
<blockquote><p><b class="note">Note</b>:
On Windows, if you're using MSSQL 2005 or greater you must copy the
<i>ntwdblib.dll</i> into the directory where you have
installed php and overwrite the one thats already in there. This is
due to the version distributed is old and outdated. Alternatively you
can use the <a href="book.uodbc.php" class="link">ODBC</a>,
<a href="ref.pdo-dblib.php" class="link">PDO_DBLIB</a> or
<a href="ref.pdo-odbc.php" class="link">PDO_ODBC</a> extensions, to talk to MSSQL.
<br />
</p></blockquote>
</div><?php manual_footer(); ?>