<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Changes the driver error handling and logging configurations</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.sqlsrv-commit.html">sqlsrv_commit</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.sqlsrv-connect.html">sqlsrv_connect</a></div> <div class="up"><a href="ref.sqlsrv.html">SQLSRV Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><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 SVN)</p><p class="refpurpose"><span class="refname">sqlsrv_configure</span> — <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">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><strong>sqlsrv_configure</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$setting</code></span> , <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span> )</div> <p class="para rdfs-comment"> Changes the driver error handling and logging configurations. </p> </div> <div class="refsect1 parameters" id="refsect1-function.sqlsrv-configure-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">setting</code></em></span> <dd> <p class="para"> The name of the setting to set. The possible values are "WarningsReturnAsErrors", "LogSubsystems", and "LogSeverity". </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">value</code></em></span> <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>TRUE</code></strong>) or 0 (<strong><code>FALSE</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> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.sqlsrv-configure-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <strong><code>TRUE</code></strong> on success or <strong><code>FALSE</code></strong> on failure. </p> </div> <div class="refsect1 seealso" id="refsect1-function.sqlsrv-configure-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="http://msdn.microsoft.com/en-us/library/cc626302.aspx" class="link external">» SQLSRV Error Handling</a>.</li> <li class="member"><a href="http://msdn.microsoft.com/en-us/library/cc296188.aspx" class="link external">» Logging SQLSRV Activity</a>.</li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.sqlsrv-commit.html">sqlsrv_commit</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.sqlsrv-connect.html">sqlsrv_connect</a></div> <div class="up"><a href="ref.sqlsrv.html">SQLSRV Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>