-
Notifications
You must be signed in to change notification settings - Fork 164
Expand file tree
/
Copy pathreference.xml
More file actions
147 lines (141 loc) · 4.38 KB
/
reference.xml
File metadata and controls
147 lines (141 loc) · 4.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 3c1bec9d700807df36994cf368ba291214cd424d Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->
<reference xml:id="ref.pdo-dblib" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<?phpdoc extension-membership="bundledexternal" ?>
<title>Microsoft SQL Server et Fonctions du pilote PDO Sybase (PDO_DBLIB)</title>
<titleabbrev>Pilote PDO MS SQL Server</titleabbrev>
<partintro>
<section xml:id="ref.pdo-dblib.intro">
&reftitle.intro;
<para>
PDO_DBLIB est un pilote qui implémente l'<link
linkend="intro.pdo">interface de PHP Data Objects (PDO)</link> pour
autoriser l'accès de PHP au Microsoft SQL Server et aux bases de
données Sybase par la bibliothèque FreeTDS.
</para>
<para>
Cette extension n'est plus disponible sous Windows.
</para>
<para>
Sous Windows, il est recommandé d'utiliser SqlSrv, un driver alternatif pour MS SQL
disponible chez Microsoft : <link xlink:href="&url.sqlsrv;">&url.sqlsrv;
</link>.
</para>
<para>
S'il n'est pas possible d'utiliser SqlSrv, il est possible d'utiliser le driver
<link linkend="ref.pdo-odbc">PDO_ODBC</link> pour se connecter à un serveur
de bases de données Microsoft SQL et Sybase, sachant que le driver natif
Windows DB-LIB est ancien, non sécurisé niveau thread et plus supporté par
Microsoft.
</para>
</section>
</partintro>
<refentry xml:id="ref.pdo-dblib.connection">
<refnamediv>
<refname>PDO_DBLIB DSN</refname>
<refpurpose>Connexion au Serveur Microsoft SQL et bases de données Sybase</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<para>
Le Data Source Name (DSN) de PDO_DBLIB est composé des éléments suivants :
<variablelist>
<varlistentry>
<term>Préfixe DSN</term>
<listitem>
<para>
Le préfixe DSN est <userinput>sybase:</userinput> si PDO_DBLIB était
lié avec les bibliothèques Sybase ct-lib, <userinput>mssql:</userinput> si
PDO_DBLIB était lié avec les bibliothèques de Microsoft SQL Server,
ou <userinput>dblib:</userinput> si PDO_DBLIB était lié avec les
bibliothèques FreeTDS.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>host</literal></term>
<listitem>
<para>
L'hôte sur lequel le serveur de base de données se situe.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>dbname</literal></term>
<listitem>
<para>
Le nom de la base de données.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>charset</literal></term>
<listitem>
<para>
Le jeu de caractères du client.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>appname</literal></term>
<listitem>
<para>
Le nom de l'application (utilisé dans <literal>sysprocesses</literal>).
Par défaut, <literal>"PHP Generic DB-lib"</literal> ou
<literal>"PHP freetds"</literal>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>secure</literal></term>
<listitem>
<para>
Actuellement inutilisé.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Exemples avec PDO_DBLIB DSN</title>
<para>
Les exemples suivants montrent PDO_DBLIB DSN pour se connecter au
Microsoft SQL Server et les bases de données Sybase :
<programlisting><![CDATA[
mssql:host=localhost;dbname=testdb
sybase:host=localhost;dbname=testdb
dblib:host=localhost;dbname=testdb
]]>
</programlisting>
</para>
</example>
</para>
</refsect1>
</refentry>
</reference>
<!-- 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
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
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
-->