⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ado_ref_error.asp@output=print

📁 W3Schools tutorial..web designing
💻 ASP@OUTPUT=PRINT
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>ADO Error Object</title>
 
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />

<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

</head>
<body>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

<h1>ADO Error Object</h1>
<a href="ado_ref_connection.asp"><img border="0" src="../images/btn_previous.gif" alt="prev" width="100" height="20" /></a>
<a href="ado_ref_field.asp"><img border="0" src="../images/btn_next.gif" alt="next" width="100" height="20" /></a>
<hr />

<h2>Error Object</h2>
<p>The ADO Error object contains details about data access errors that have been generated during a
single operation.&nbsp;</p>
<p>
ADO generates one Error object for each error. Each Error object contains details of the specific
error, and are stored in the Errors collection. To access the errors, you must refer to
a specific connection.</p>
<p>To loop through the Errors collection:</p>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
  <tr valign="top">
    <td valign="top">
      <pre>&lt;%
for each objErr in objConn.Errors
  response.write(&quot;&lt;p&gt;&quot;)
  response.write(&quot;Description: &quot;)
  response.write(objErr.Description &amp; &quot;&lt;br /&gt;&quot;)
  response.write(&quot;Help context: &quot;)
  response.write(objErr.HelpContext &amp; &quot;&lt;br /&gt;&quot;)
  response.write(&quot;Help file: &quot;)
  response.write(objErr.HelpFile &amp; &quot;&lt;br /&gt;&quot;)
  response.write(&quot;Native error: &quot;)
  response.write(objErr.NativeError &amp; &quot;&lt;br /&gt;&quot;)
  response.write(&quot;Error number: &quot;)
  response.write(objErr.Number &amp; &quot;&lt;br /&gt;&quot;)
  response.write(&quot;Error source: &quot;)
  response.write(objErr.Source &amp; &quot;&lt;br /&gt;&quot;)
  response.write(&quot;SQL state: &quot;)
  response.write(objErr.SQLState &amp; &quot;&lt;br /&gt;&quot;)
  response.write(&quot;&lt;/p&gt;&quot;)
next
%&gt;</pre>
    </td>
  </tr>
</table>
<h3>Syntax</h3>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
  <tr valign="top">
    <td valign="top">
      <pre>objErr.property</pre>
    </td>
  </tr>
</table>
<h3>Properties</h3>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
  <tr valign="top">
    <th width="30%" align="left" valign="top">Property</th>
    <th width="70%" align="left" valign="top">Description</th>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="prop_err_description.asp">Description</a></td>
    <td valign="top">Returns an error description</td>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="prop_err_helpcontext.asp">HelpContext</a></td>
    <td valign="top">Returns the context ID of a topic in
      the Microsoft Windows help system</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_err_helpfile.asp">HelpFile</a></td>
    <td valign="top">Returns the full path of the help
      file in the Microsoft Windows help system</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_err_nativeerror.asp">NativeError</a></td>
    <td valign="top">Returns an error code from the provider or the data source</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_err_number.asp">Number</a></td>
    <td valign="top">Returns a unique number that identifies the error</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_err_source.asp">Source</a></td>
    <td valign="top">Returns the name of the object or application that generated the
      error</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_err_sqlstate.asp">SQLState</a></td>
    <td valign="top">Returns a 5-character SQL error code</td>
  </tr>
</table>
<br />
<hr />
<a href="ado_ref_connection.asp"><img border="0" src="../images/btn_previous.gif" alt="prev" width="100" height="20" /></a>
<a href="ado_ref_field.asp"><img border="0" src="../images/btn_next.gif" alt="next" width="100" height="20" /></a>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -