php-doc-en/reference/pdo_sqlsrv/constants.xml
Christoph Michael Becker 86e6094e86 Use canonical type names
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351133 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:39:04 +00:00

179 lines
6.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<section xml:id="pdo-sqlsrv.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.constants;
&pdo.driver-constants;
<variablelist>
<varlistentry xml:id="pdo.constants.sqlsrv-txn-read-uncommitted">
<term>
<constant>PDO::SQLSRV_TXN_READ_UNCOMMITTED</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
This constant is an acceptable value for the SQLSRV DSN key TransactionIsolation.
This constant sets the transaction isolation level for the connection to
Read Uncommitted.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.sqlsrv-txn-read-committed">
<term>
<constant>PDO::SQLSRV_TXN_READ_COMMITTED</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
This constant is an acceptable value for the SQLSRV DSN key TransactionIsolation.
This constant sets the transaction isolation level for the connection to
Read Committed.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.sqlsrv-txn-repeatable-read">
<term>
<constant>PDO::SQLSRV_TXN_REPEATABLE_READ</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
This constant is an acceptable value for the SQLSRV DSN key TransactionIsolation.
This constant sets the transaction isolation level for the connection to
Repeateable Read.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.sqlsrv-txn-snapshot">
<term>
<constant>PDO::SQLSRV_TXN_SNAPSHOT</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
This constant is an acceptable value for the SQLSRV DSN key TransactionIsolation.
This constant sets the transaction isolation level for the connection to Snapshot.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.sqlsrv-txn-serializable">
<term>
<constant>PDO::SQLSRV_TXN_SERIALIZABLE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
This constant is an acceptable value for the SQLSRV DSN key TransactionIsolation.
This constant sets the transaction isolation level for the connection to
Serializable.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.sqlsrv-encoding-binary">
<term>
<constant>PDO::SQLSRV_ENCODING_BINARY</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Specifies that data is sent/retrieved as a raw byte stream to/from the server
without performing encoding or translation. This constant can be passed to
PDOStatement::setAttribute, PDO::prepare, PDOStatement::bindColumn, and
PDOStatement::bindParam.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.sqlsrv-encoding-system">
<term>
<constant>PDO::SQLSRV_ENCODING_SYSTEM</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Specifies that data is sent/retrieved to/from the server as 8-bit characters
as specified in the code page of the Windows locale that is set on the system.
Any multi-byte characters or characters that do not map into this code page
are substituted with a single byte question mark (?) character. This constant
can be passed to PDOStatement::setAttribute, PDO::setAttribute, PDO::prepare,
PDOStatement::bindColumn, and PDOStatement::bindParam.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.sqlsrv-encoding-utf8">
<term>
<constant>PDO::SQLSRV_ENCODING_UTF8</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Specifies that data is sent/retrieved to/from the server in UTF-8 encoding.
This is the default encoding. This constant can be passed to
PDOStatement::setAttribute, PDO::setAttribute, PDO::prepare,
PDOStatement::bindColumn, and PDOStatement::bindParam.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.sqlsrv-encoding-default">
<term>
<constant>PDO::SQLSRV_ENCODING_DEFAULT</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Specifies that data is sent/retrieved to/from the server according to
PDO::SQLSRV_ENCODING_SYSTEM if specified during connection. The connection's
encoding is used if specified in a prepare statement. This constant can be
passed to PDOStatement::setAttribute, PDO::setAttribute, PDO::prepare,
PDOStatement::bindColumn, and PDOStatement::bindParam.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.sqlsrv-attr-query-timeout">
<term>
<constant>PDO::SQLSRV_ATTR_QUERY_TIMEOUT</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
A non-negative integer representing the timeout period, in seconds. Zero (0)
is the default and means no timeout. This constant can be passed to
PDOStatement::setAttribute, PDO::setAttribute, and PDO::prepare.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.sqlsrv-attr-direct-query">
<term>
<constant>PDO::SQLSRV_ATTR_DIRECT_QUERY</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Indicates that a query should be executed directly, without being prepared.
This constant can be passed to PDO::setAttribute, and PDO::prepare. For more
information, see
<link xlink:href="&url.sqlsrv.direct.execution;">Direct and Prepared Statement Execution</link>.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</section>
<!-- 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
-->