ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaik_5.4.0.1/rzaikodbcfunctionrc.htm

73 lines
4.2 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="ODBC API return codes" />
<meta name="abstract" content="Every ODBC API function returns a value of type SQLRETURN (a short integer). There are seven possible return codes, and associated with each is a manifest constant." />
<meta name="description" content="Every ODBC API function returns a value of type SQLRETURN (a short integer). There are seven possible return codes, and associated with each is a manifest constant." />
<meta name="DC.Relation" scheme="URI" content="rzaikodbcapiinfo.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="odbcfunctionrc" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>ODBC API return codes</title>
</head>
<body id="odbcfunctionrc"><a name="odbcfunctionrc"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">ODBC API return codes</h1>
<div><p>Every ODBC API function returns a value of type SQLRETURN (a short
integer). There are seven possible return codes, and associated with each
is a manifest constant.</p>
<div class="section"><p>The following list provides an explanation of each particular
code. Some return codes can be interpreted as an error on the function call.
Others indicate success. Still others indicate that more information is needed
or pending.</p>
</div>
<div class="section"><p>A particular function may not return all possible codes. See the <em>Microsoft<sup>®</sup> ODBC
3.0 Software Development Kit and Programmer's Reference, Version 3.0 ISBN
1-57231-516-4.</em> for possible values, and for the precise interpretation
for that function.</p>
</div>
<div class="section"><p>Pay close attention to return codes in your program, particularly
those that are associated with the processing of SQL statements processing
and with data source data access. In many instances the return code is the
only reliable way of determining the success of a function.</p>
</div>
<div class="section"><dl><dt class="dlterm">SQL_SUCCESS</dt>
<dd>Function has completed successfully; no additional information available.</dd>
<dt class="dlterm">SQL_SUCCESS_WITH_INFO</dt>
<dd>Function completed successfully; possibly with a nonfatal error. The application
can call SQLGetDiagRec to retrieve additional information.</dd>
<dt class="dlterm">SQL_NO_DATA_FOUND</dt>
<dd>All rows from the result set have been fetched.</dd>
<dt class="dlterm">SQL_ERROR</dt>
<dd>Function failed. The application can call SQLGetDiagRec to retrieve error
information.</dd>
<dt class="dlterm">SQL_INVALID_HANDLE</dt>
<dd>Function failed due to an unusable environment, connection, or statement
handle. Programming error.</dd>
<dt class="dlterm">SQL_NEED_DATA</dt>
<dd>The driver is asking the application to send parameter data values.</dd>
</dl>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaikodbcapiinfo.htm" title="Identify the files required to build an ODBC application.">Files required to build an ODBC application</a></div>
</div>
</div>
</body>
</html>