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

69 lines
4.1 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?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="End ODBC functions" />
<meta name="abstract" content="The last procedure that must be completed before ending an ODBC application is to free the resources and memory allocated by the application. This must be done so that they are available when the application is run the next time." />
<meta name="description" content="The last procedure that must be completed before ending an ODBC application is to free the resources and memory allocated by the application. This must be done so that they are available when the application is run the next time." />
<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="endodbcfunct" />
<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>End ODBC functions</title>
</head>
<body id="endodbcfunct"><a name="endodbcfunct"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">End ODBC functions</h1>
<div><p>The last procedure that must be completed before ending an ODBC
application is to free the resources and memory allocated by the application.
This must be done so that they are available when the application is run the
next time.</p>
<div class="section"><dl><dt class="dlterm">SQLFreeStmt</dt>
<dd>Stops processing associated with a specific statement handle. <pre>rc = SQLFreeStmt(hstmt, option); // option can be SQL_CLOSE, SQL_RESET_PARAMS. or SQL_UNBIND</pre>
<dl><dt class="dlterm">SQL_CLOSE</dt>
<dd>Closes the cursor associated with the statement handle, and discards all
pending results. Alternately, you can use SQLCloseCursor.</dd>
<dt class="dlterm">SQL_RESET_PARAMS</dt>
<dd>Releases all common buffers that are bound by SQLBindParameter. </dd>
<dt class="dlterm">SQL_UNBIND</dt>
<dd> Releases all common buffers that are bound by SQLBindCol. </dd>
</dl>
</dd>
<dt class="dlterm">SQLFreeHandle with SQL_HANDLE_STMT as the handle type</dt>
<dd> Frees all resources for this statement. <pre> rc = SQLFreeHandle(SQL_HANDLE_STMT, hstmt);</pre>
</dd>
<dt class="dlterm">SQLDisconnect</dt>
<dd>Closes the connection associated with a specific connection handle. <pre>rc = SQLDisconnect(hdbc);</pre>
</dd>
<dt class="dlterm">SQLFreeHandle with SQL_HANDLE_DBC as the handle type</dt>
<dd>Releases connection handle and frees all memory associated with a connection
handle. <pre>rc = SQLFreeHandle(SQL_HANDLE_DBC, hdbc);</pre>
</dd>
<dt class="dlterm">SQLFreeHandle with SQL_HANDLE_ENV as the handle type</dt>
<dd>Frees environment handle and releases all memory associated with the environment
handle. <pre>rc = SQLFreeHandle(SQL_HANDLE_ENV, henv);</pre>
</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>