<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.sqlsrv.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.sqlsrv-configure.php',
    1 => 'sqlsrv_configure',
    2 => 'Changes the driver error handling and logging configurations',
  ),
  'up' => 
  array (
    0 => 'ref.sqlsrv.php',
    1 => 'SQLSRV Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.sqlsrv-commit.php',
    1 => 'sqlsrv_commit',
  ),
  'next' => 
  array (
    0 => 'function.sqlsrv-connect.php',
    1 => 'sqlsrv_connect',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/sqlsrv/functions/sqlsrv-configure.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.sqlsrv-configure" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">sqlsrv_configure</h1>
  <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">sqlsrv_configure</span> &mdash; <span class="dc-title">Changes the driver error handling and logging configurations</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.sqlsrv-configure-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>sqlsrv_configure</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$setting</code></span>, <span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Changes the driver error handling and logging configurations.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.sqlsrv-configure-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <dl>
   
    <dt><code class="parameter">setting</code></dt>
    <dd>
     <span class="simpara">
      The name of the setting to set. The possible values are
      &quot;WarningsReturnAsErrors&quot;, &quot;LogSubsystems&quot;, and &quot;LogSeverity&quot;.
     </span>
    </dd>
   
   
    <dt><code class="parameter">value</code></dt>
    <dd>
     <p class="para">
      The value of the specified setting. The following table shows possible values:
         <table class="doctable table">
  <caption><strong>Error and Logging Setting Options</strong></caption>
  
   <thead>
    <tr>
     <th>Setting</th>
     <th>Options</th>
    </tr>

   </thead>

   <tbody class="tbody">
    <tr>
     <td>WarningsReturnAsErrors</td>
     <td>1 (<strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>) or 0 (<strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>)</td>
    </tr>

    <tr>
     <td>LogSubsystems</td>
     <td>SQLSRV_LOG_SYSTEM_ALL (-1)
     SQLSRV_LOG_SYSTEM_CONN (2)
     SQLSRV_LOG_SYSTEM_INIT (1)
     SQLSRV_LOG_SYSTEM_OFF (0)
     SQLSRV_LOG_SYSTEM_STMT (4)
     SQLSRV_LOG_SYSTEM_UTIL (8)</td>
    </tr>

    <tr>
     <td>LogSeverity</td>
     <td>SQLSRV_LOG_SEVERITY_ALL (-1)
     SQLSRV_LOG_SEVERITY_ERROR (1)
     SQLSRV_LOG_SEVERITY_NOTICE (4)
     SQLSRV_LOG_SEVERITY_WARNING (2)</td>
    </tr>

   </tbody>
  
 </table>

     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.sqlsrv-configure-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="simpara">
   Restituisce <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> in caso di successo, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> in caso di fallimento.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.sqlsrv-configure-seealso">
  <h3 class="title">Vedere anche:</h3>
  <ul class="simplelist">
   <li><a href="http://msdn.microsoft.com/en-us/library/cc626302.aspx" class="link external">&raquo;&nbsp;SQLSRV Error Handling</a>.</li>
   <li><a href="http://msdn.microsoft.com/en-us/library/cc296188.aspx" class="link external">&raquo;&nbsp;Logging SQLSRV Activity</a>.</li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>