<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.sqlsrv.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'sqlsrv.constants.php',
    1 => '预定义常量',
    2 => '预定义常量',
  ),
  'up' => 
  array (
    0 => 'book.sqlsrv.php',
    1 => 'SQLSRV',
  ),
  'prev' => 
  array (
    0 => 'sqlsrv.resources.php',
    1 => '资源类型',
  ),
  'next' => 
  array (
    0 => 'ref.sqlsrv.php',
    1 => 'SQLSRV 函数',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/sqlsrv/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="sqlsrv.constants" class="appendix">
 <h1 class="title">预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>
  
   <dt id="constant.sqlsrv-fetch-assoc">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-fetch-assoc">SQLSRV_FETCH_ASSOC</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Forces <span class="function"><a href="function.sqlsrv-fetch-array.php" class="function">sqlsrv_fetch_array()</a></span> to return an associative
    array when passed as a parameter.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-fetch-numeric">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-fetch-numeric">SQLSRV_FETCH_NUMERIC</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Forces <span class="function"><a href="function.sqlsrv-fetch-array.php" class="function">sqlsrv_fetch_array()</a></span> to return an array with
    numeric when passed as a parameter.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-fetch-both">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-fetch-both">SQLSRV_FETCH_BOTH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Forces <span class="function"><a href="function.sqlsrv-fetch-array.php" class="function">sqlsrv_fetch_array()</a></span> to return an array with both
    associative and numeric keys when passed as a parameter (the default behavior).
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-err-all">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-err-all">SQLSRV_ERR_ALL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Forces <span class="function"><a href="function.sqlsrv-errors.php" class="function">sqlsrv_errors()</a></span> to return both errors and warings
    when passed as a parameter (the default behavior).
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-err-errors">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-err-errors">SQLSRV_ERR_ERRORS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Forces <span class="function"><a href="function.sqlsrv-errors.php" class="function">sqlsrv_errors()</a></span> to return errors only (no warnings)
    when passed as a parameter.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-err-warnings">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-err-warnings">SQLSRV_ERR_WARNINGS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Forces <span class="function"><a href="function.sqlsrv-errors.php" class="function">sqlsrv_errors()</a></span> to return warnings only (no errors)
    when passed as a parameter.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-log-system-all">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-log-system-all">SQLSRV_LOG_SYSTEM_ALL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Turns on logging of all subsystems when passed to
    <span class="function"><a href="function.sqlsrv-configure.php" class="function">sqlsrv_configure()</a></span> as a parameter.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-log-system-conn">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-log-system-conn">SQLSRV_LOG_SYSTEM_CONN</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Turns on logging of connection activity when passed to
    <span class="function"><a href="function.sqlsrv-configure.php" class="function">sqlsrv_configure()</a></span> as a parameter.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-log-system-init">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-log-system-init">SQLSRV_LOG_SYSTEM_INIT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Turns on logging of initialization activity when passed to
    <span class="function"><a href="function.sqlsrv-configure.php" class="function">sqlsrv_configure()</a></span> as a parameter.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-log-system-off">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-log-system-off">SQLSRV_LOG_SYSTEM_OFF</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Turns off logging of all subsystems when passed to
    <span class="function"><a href="function.sqlsrv-configure.php" class="function">sqlsrv_configure()</a></span> as a parameter.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-log-system-stmt">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-log-system-stmt">SQLSRV_LOG_SYSTEM_STMT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Turns on logging of statement activity when passed to
    <span class="function"><a href="function.sqlsrv-configure.php" class="function">sqlsrv_configure()</a></span> as a parameter.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-log-system-util">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-log-system-util">SQLSRV_LOG_SYSTEM_UTIL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Turns on logging of error function activity when passed to
    <span class="function"><a href="function.sqlsrv-configure.php" class="function">sqlsrv_configure()</a></span> as a parameter.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-log-severity-all">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-log-severity-all">SQLSRV_LOG_SEVERITY_ALL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Specifies that errors, warnings, and notices will be logged
    when passed to <span class="function"><a href="function.sqlsrv-configure.php" class="function">sqlsrv_configure()</a></span> as a parameter.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-log-severity-error">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-log-severity-error">SQLSRV_LOG_SEVERITY_ERROR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Specifies that errors will be logged when passed to
    <span class="function"><a href="function.sqlsrv-configure.php" class="function">sqlsrv_configure()</a></span> as a parameter.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-log-severity-notice">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-log-severity-notice">SQLSRV_LOG_SEVERITY_NOTICE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Specifies that notices will be logged when passed to
    <span class="function"><a href="function.sqlsrv-configure.php" class="function">sqlsrv_configure()</a></span> as a parameter.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-log-severity-warning">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-log-severity-warning">SQLSRV_LOG_SEVERITY_WARNING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Specifies that warnings will be logged when passed to
    <span class="function"><a href="function.sqlsrv-configure.php" class="function">sqlsrv_configure()</a></span> as a parameter.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-nullable-yes">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-nullable-yes">SQLSRV_NULLABLE_YES</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Indicates that a column is nullable.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-nullable-no">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-nullable-no">SQLSRV_NULLABLE_NO</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Indicates that a column is not nullable.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-nullable-unknown">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-nullable-unknown">SQLSRV_NULLABLE_UNKNOWN</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Indicates that it is not known if a column is nullable.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-param-in">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-param-in">SQLSRV_PARAM_IN</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Indicates an input parameter when passed to <span class="function"><a href="function.sqlsrv-query.php" class="function">sqlsrv_query()</a></span>
    or <span class="function"><a href="function.sqlsrv-prepare.php" class="function">sqlsrv_prepare()</a></span>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-param-inout">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-param-inout">SQLSRV_PARAM_INOUT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Indicates a bidirectional parameter when passed to <span class="function"><a href="function.sqlsrv-query.php" class="function">sqlsrv_query()</a></span>
    or <span class="function"><a href="function.sqlsrv-prepare.php" class="function">sqlsrv_prepare()</a></span>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-param-out">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-param-out">SQLSRV_PARAM_OUT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Indicates an output parameter when passed to <span class="function"><a href="function.sqlsrv-query.php" class="function">sqlsrv_query()</a></span> or
    <span class="function"><a href="function.sqlsrv-prepare.php" class="function">sqlsrv_prepare()</a></span>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-phptype-int">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-phptype-int">SQLSRV_PHPTYPE_INT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Specifies an integer PHP data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc296208.aspx" class="link external">&raquo;&nbsp;How to: Specify PHP Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-phptype-datetime">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-phptype-datetime">SQLSRV_PHPTYPE_DATETIME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Specifies a datetime PHP data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc296208.aspx" class="link external">&raquo;&nbsp;How to: Specify PHP Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-phptype-float">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-phptype-float">SQLSRV_PHPTYPE_FLOAT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Specifies a float PHP data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc296208.aspx" class="link external">&raquo;&nbsp;How to: Specify PHP Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-phptype-stream">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-phptype-stream">SQLSRV_PHPTYPE_STREAM</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Specifies a PHP stream. This constant works like a function and accepts an
    encoding constant. See the SQLSRV_ENC_* constants. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc296208.aspx" class="link external">&raquo;&nbsp;How to: Specify PHP Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-phptype-string">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-phptype-string">SQLSRV_PHPTYPE_STRING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Specifies a string PHP data type. This constant works like a function and
    accepts an encoding constant. See the SQLSRV_ENC_* constants. For usage information,
    see <a href="http://msdn.microsoft.com/en-us/library/cc296208.aspx" class="link external">&raquo;&nbsp;How to: Specify PHP Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-enc-binary">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-enc-binary">SQLSRV_ENC_BINARY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Specifies that data is returned as a raw byte stream from the server without
    performing encoding or translation. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc296208.aspx" class="link external">&raquo;&nbsp;How to: Specify PHP Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-enc-char">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-enc-char">SQLSRV_ENC_CHAR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Data is returned in 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 is the default encoding. For usage information,
    see <a href="http://msdn.microsoft.com/en-us/library/cc296208.aspx" class="link external">&raquo;&nbsp;How to: Specify PHP Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-bigint">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-bigint">SQLSRV_SQLTYPE_BIGINT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the bigint SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-binary">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-binary">SQLSRV_SQLTYPE_BINARY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the binary SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-bit">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-bit">SQLSRV_SQLTYPE_BIT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the bit SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-char">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-char">SQLSRV_SQLTYPE_CHAR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the char SQL Server data type. This constant works like a function
    and accepts a parameter indicating the number characters. For usage information,
    see <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-date">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-date">SQLSRV_SQLTYPE_DATE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the date SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-datetime">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-datetime">SQLSRV_SQLTYPE_DATETIME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the datetime SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-datetime2">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-datetime2">SQLSRV_SQLTYPE_DATETIME2</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the datetime2 SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-datetimeoffset">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-datetimeoffset">SQLSRV_SQLTYPE_DATETIMEOFFSET</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the datetimeoffset SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-decimal">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-decimal">SQLSRV_SQLTYPE_DECIMAL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the decimal SQL Server data type. This constant works like a function
    and accepts two parameters indicating (in order) precision and scale. For usage information,
    see <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-float">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-float">SQLSRV_SQLTYPE_FLOAT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the float SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-image">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-image">SQLSRV_SQLTYPE_IMAGE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the image SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-int">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-int">SQLSRV_SQLTYPE_INT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the int SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-money">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-money">SQLSRV_SQLTYPE_MONEY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the money SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-nchar">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-nchar">SQLSRV_SQLTYPE_NCHAR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the nchar SQL Server data type. This constant works like a function
    and accepts a single parameter indicating the character count. For usage information,
    see <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-numeric">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-numeric">SQLSRV_SQLTYPE_NUMERIC</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the numeric SQL Server data type. This constant works like a function
    and accepts two parameter indicating (in order) precision and scale. For usage
    information, see <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-nvarchar">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-nvarchar">SQLSRV_SQLTYPE_NVARCHAR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the nvarchar SQL Server data type. This constant works like a function
    and accepts a single parameter indicating the character count. For usage
    information, see <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt>
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-nvarchar">SQLSRV_SQLTYPE_NVARCHAR</a></code></strong>(&#039;max&#039;)
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the nvarchar(MAX) SQL Server data type. For usage information,
    see <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-ntext">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-ntext">SQLSRV_SQLTYPE_NTEXT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the ntext SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-real">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-real">SQLSRV_SQLTYPE_REAL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the real SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-smalldatetime">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-smalldatetime">SQLSRV_SQLTYPE_SMALLDATETIME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the smalldatetime SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-smallint">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-smallint">SQLSRV_SQLTYPE_SMALLINT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the smallint SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-smallmoney">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-smallmoney">SQLSRV_SQLTYPE_SMALLMONEY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the smallmoney SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-text">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-text">SQLSRV_SQLTYPE_TEXT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the text SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-time">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-time">SQLSRV_SQLTYPE_TIME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the time SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-timestamp">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-timestamp">SQLSRV_SQLTYPE_TIMESTAMP</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the timestamp SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-tinyint">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-tinyint">SQLSRV_SQLTYPE_TINYINT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the tinyint SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-uniqueidentifier">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-uniqueidentifier">SQLSRV_SQLTYPE_UNIQUEIDENTIFIER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the uniqueidentifier SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-udt">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-udt">SQLSRV_SQLTYPE_UDT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the UDT SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-varbinary">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-varbinary">SQLSRV_SQLTYPE_VARBINARY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the varbinary SQL Server data type. This constant works like a function
    and accepts a single parameter indicating the byte count. For usage information,
    see <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt>
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-varbinary">SQLSRV_SQLTYPE_VARBINARY</a></code></strong>(&#039;max&#039;)
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the varbinary(MAX) SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-varchar">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-varchar">SQLSRV_SQLTYPE_VARCHAR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the varchar SQL Server data type. This constant works like a function
    and accepts a single parameter indicating the character count. For usage information,
    see <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt>
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-varchar">SQLSRV_SQLTYPE_VARCHAR</a></code></strong>(&#039;max&#039;)
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the varchar(MAX) SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-sqltype-xml">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-sqltype-xml">SQLSRV_SQLTYPE_XML</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Describes the XML SQL Server data type. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" class="link external">&raquo;&nbsp;How to: Specify SQL Types</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-txn-read-uncommitted">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-txn-read-uncommitted">SQLSRV_TXN_READ_UNCOMMITTED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Indicates a transaction isolation level of READ UNCOMMITTED. This value is
    used to set the TransactionIsolation level in the $connectionOptions array
    passed to <span class="function"><a href="function.sqlsrv-connect.php" class="function">sqlsrv_connect()</a></span>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-txn-read-committed">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-txn-read-committed">SQLSRV_TXN_READ_COMMITTED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Indicates a transaction isolation level of READ COMMITTED. This value is
    used to set the TransactionIsolation level in the $connectionOptions array
    passed to <span class="function"><a href="function.sqlsrv-connect.php" class="function">sqlsrv_connect()</a></span>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-txn-repeatable-read">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-txn-repeatable-read">SQLSRV_TXN_REPEATABLE_READ</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Indicates a transaction isolation level of REPEATABLE READ. This value is
    used to set the TransactionIsolation level in the $connectionOptions array
    passed to <span class="function"><a href="function.sqlsrv-connect.php" class="function">sqlsrv_connect()</a></span>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-txn-snapshot">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-txn-snapshot">SQLSRV_TXN_SNAPSHOT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Indicates a transaction isolation level of SNAPSHOT. This value is used to
    set the TransactionIsolation level in the $connectionOptions array passed
    to <span class="function"><a href="function.sqlsrv-connect.php" class="function">sqlsrv_connect()</a></span>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-txn-read-serializable">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-txn-read-serializable">SQLSRV_TXN_READ_SERIALIZABLE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Indicates a transaction isolation level of SERIALIZABLE. This value is used
    to set the TransactionIsolation level in the $connectionOptions array passed
    to <span class="function"><a href="function.sqlsrv-connect.php" class="function">sqlsrv_connect()</a></span>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-cursor-forward">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-cursor-forward">SQLSRV_CURSOR_FORWARD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Indicates a forward-only cursor. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/ee376927.aspx" class="link external">&raquo;&nbsp;Specifying a Cursor Type and Selecting Rows</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-cursor-static">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-cursor-static">SQLSRV_CURSOR_STATIC</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Indicates a static cursor. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/ee376927.aspx" class="link external">&raquo;&nbsp;Specifying a Cursor Type and Selecting Rows</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-dynamic">
    <strong><code>SQLSRV_CURSOR_DYNAMIC</code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Indicates a dynamic cursor. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/ee376927.aspx" class="link external">&raquo;&nbsp;Specifying a Cursor Type and Selecting Rows</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-cursor-keyset">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-cursor-keyset">SQLSRV_CURSOR_KEYSET</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Indicates a keyset cursor. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/ee376927.aspx" class="link external">&raquo;&nbsp;Specifying a Cursor Type and Selecting Rows</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-cursor-buffered">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-cursor-buffered">SQLSRV_CURSOR_BUFFERED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Creates a client-side cursor query. Lets you access rows in any order. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/ee376927.aspx" class="link external">&raquo;&nbsp;Specifying a Cursor Type and Selecting Rows</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-scroll-next">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-scroll-next">SQLSRV_SCROLL_NEXT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Specifies which row to select in a result set. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/ee376927.aspx" class="link external">&raquo;&nbsp;Specifying a Cursor Type and Selecting Rows</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-scroll-prior">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-scroll-prior">SQLSRV_SCROLL_PRIOR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Specifies which row to select in a result set. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/ee376927.aspx" class="link external">&raquo;&nbsp;Specifying a Cursor Type and Selecting Rows</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-scroll-first">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-scroll-first">SQLSRV_SCROLL_FIRST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Specifies which row to select in a result set. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/ee376927.aspx" class="link external">&raquo;&nbsp;Specifying a Cursor Type and Selecting Rows</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-scroll-last">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-scroll-last">SQLSRV_SCROLL_LAST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Specifies which row to select in a result set. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/ee376927.aspx" class="link external">&raquo;&nbsp;Specifying a Cursor Type and Selecting Rows</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-scroll-absolute">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-scroll-absolute">SQLSRV_SCROLL_ABSOLUTE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Specifies which row to select in a result set. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/ee376927.aspx" class="link external">&raquo;&nbsp;Specifying a Cursor Type and Selecting Rows</a>.
    </span>
   </dd>
  
  
   <dt id="constant.sqlsrv-scroll-relative">
    <strong><code><a href="sqlsrv.constants.php#constant.sqlsrv-scroll-relative">SQLSRV_SCROLL_RELATIVE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    Specifies which row to select in a result set. For usage information, see
    <a href="http://msdn.microsoft.com/en-us/library/ee376927.aspx" class="link external">&raquo;&nbsp;Specifying a Cursor Type and Selecting Rows</a>.
    </span>
   </dd>
  
 </dl>
</div>
<?php manual_footer($setup); ?>