mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 13:57:03 +08:00
121 lines
3.7 KiB
HTML
121 lines
3.7 KiB
HTML
<!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 class="docs"><div id="layout">
|
||
<div id="layout-content"><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> — <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">说明</h3>
|
||
<div class="methodsynopsis dc-description">
|
||
<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>
|
||
) : <span class="type">bool</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">参数</h3>
|
||
<p class="para">
|
||
<dl>
|
||
|
||
|
||
<dt>
|
||
<code class="parameter">setting</code></dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
The name of the setting to set. The possible values are
|
||
"WarningsReturnAsErrors", "LogSubsystems", and "LogSeverity".
|
||
</p>
|
||
</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>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>
|
||
|
||
|
||
</dl>
|
||
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 returnvalues" id="refsect1-function.sqlsrv-configure-returnvalues">
|
||
<h3 class="title">返回值</h3>
|
||
<p class="para">
|
||
成功时返回 <strong><code>TRUE</code></strong>, 或者在失败时返回 <strong><code>FALSE</code></strong>。
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 seealso" id="refsect1-function.sqlsrv-configure-seealso">
|
||
<h3 class="title">参见</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></div></div></body></html> |