2007-12-26 13:57:52 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 08:10:32 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-12-26 13:57:52 +00:00
|
|
|
|
|
|
|
<chapter xml:id="mssql.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
|
|
&reftitle.setup;
|
|
|
|
|
|
|
|
<!-- {{{ Requirements -->
|
|
|
|
<section xml:id="mssql.requirements">
|
|
|
|
&reftitle.required;
|
|
|
|
<para>
|
|
|
|
Requirements for Win32 platforms.
|
|
|
|
</para>
|
|
|
|
<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
|
|
|
|
<filename>ntwdblib.dll</filename> from
|
|
|
|
<filename>\winnt\system32</filename> on the server to
|
|
|
|
<filename>\winnt\system32</filename> on the PHP box.
|
|
|
|
Copying <filename>ntwdblib.dll</filename> will only provide access
|
|
|
|
through named pipes.
|
|
|
|
Configuration of the client will require installation of all the tools.
|
|
|
|
</para>
|
2010-06-14 22:00:37 +00:00
|
|
|
<para>
|
|
|
|
This extension is not available anymore on Windows with PHP 5.3 or later.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
SqlSrv, an alternative driver for MS SQL is available from Microsoft: <link
|
2010-12-07 03:02:47 +00:00
|
|
|
xlink:href="&url.sqlsrv;">&url.sqlsrv;</link>.
|
2010-06-14 22:00:37 +00:00
|
|
|
</para>
|
2007-12-26 13:57:52 +00:00
|
|
|
<para>
|
|
|
|
Requirements for Unix/Linux platforms.
|
|
|
|
</para>
|
|
|
|
<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:
|
|
|
|
<link xlink:href="&url.freetds;">&url.freetds;</link>
|
|
|
|
</para>
|
|
|
|
<note>
|
|
|
|
<para>
|
2008-10-08 18:29:23 +00:00
|
|
|
On Windows, the DBLIB from Microsoft is used. Functions that return a
|
2007-12-26 13:57:52 +00:00
|
|
|
column name are based on the <literal>dbcolname()</literal> 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.
|
|
|
|
</para>
|
|
|
|
</note>
|
2008-07-23 17:31:18 +00:00
|
|
|
<note>
|
|
|
|
<para>
|
2008-10-07 07:31:57 +00:00
|
|
|
On Windows, if you're using MSSQL 2005 or greater you must copy the
|
2008-10-08 18:29:23 +00:00
|
|
|
<literal>ntwdblib.dll</literal> 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
|
2010-06-14 22:04:47 +00:00
|
|
|
can use the <link xlink:href="&url.sqlsrv;">&url.sqlsrv;</link>,
|
|
|
|
<link linkend="book.uodbc">ODBC</link>,
|
2008-10-08 18:29:23 +00:00
|
|
|
<link linkend="ref.pdo-dblib">PDO_DBLIB</link> or
|
2008-10-09 08:48:10 +00:00
|
|
|
<link linkend="ref.pdo-odbc">PDO_ODBC</link> extensions, to talk to MSSQL.
|
2008-07-23 17:31:18 +00:00
|
|
|
</para>
|
|
|
|
</note>
|
2007-12-26 13:57:52 +00:00
|
|
|
</section>
|
|
|
|
<!-- }}} -->
|
|
|
|
|
|
|
|
<!-- {{{ Installation -->
|
|
|
|
&reference.mssql.configure;
|
|
|
|
<!-- }}} -->
|
|
|
|
|
|
|
|
<!-- {{{ Configuration -->
|
|
|
|
&reference.mssql.ini;
|
|
|
|
<!-- }}} -->
|
|
|
|
|
|
|
|
<!-- {{{ Resources -->
|
2008-10-09 08:48:10 +00:00
|
|
|
<section xml:id="mssql.resources">
|
|
|
|
&reftitle.resources;
|
|
|
|
<section xml:id="mssql.resources.link">
|
|
|
|
<title>mssql link</title>
|
|
|
|
<para>
|
|
|
|
A connection link returned by <function>mssql_connect</function>
|
|
|
|
and <function>mssql_pconnect</function>.
|
|
|
|
</para>
|
|
|
|
</section>
|
|
|
|
<section xml:id="mssql.resources.result">
|
|
|
|
<title>mssql result</title>
|
|
|
|
<para>
|
|
|
|
A result handle returned by <function>mssql_query</function> on
|
|
|
|
<literal>SELECT</literal> queries.
|
|
|
|
</para>
|
|
|
|
</section>
|
|
|
|
<section xml:id="mssql.resources.statement">
|
|
|
|
<title>mssql statement</title>
|
|
|
|
<para>
|
|
|
|
A statement handle returned by <function>mssql_init</function>.
|
|
|
|
</para>
|
|
|
|
</section>
|
|
|
|
</section>
|
2007-12-26 13:57:52 +00:00
|
|
|
<!-- }}} -->
|
|
|
|
|
|
|
|
</chapter>
|
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2007-12-26 13:57:52 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|
|
|
|
|