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

116 lines
7.0 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="iSeries Access for Windows ODBC" />
<meta name="abstract" content="A common database interface that uses SQL as its database access language. iSeries Access for Windows provides an ODBC driver to support this interface." />
<meta name="description" content="A common database interface that uses SQL as its database access language. iSeries Access for Windows provides an ODBC driver to support this interface." />
<meta name="DC.Relation" scheme="URI" content="rzaikcaapidb.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaikodbcapiinfo.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaikodbcapifunctions.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaikodbcperfconsd.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaikodbcprogexamples.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="appodbc" />
<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>iSeries Access
for Windows ODBC</title>
</head>
<body id="appodbc"><a name="appodbc"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">iSeries Access
for Windows ODBC</h1>
<div><p>A common database interface that uses SQL as its database access
language. iSeries™ Access
for Windows<sup>®</sup> provides
an ODBC driver to support this interface.</p>
<div class="section"><h4 class="sectiontitle">What is ODBC?</h4><p>ODBC stands for open database connectivity.
It consists of:</p>
<ul><li>A well-defined set of functions (application programming interfaces)</li>
<li>Standards for SQL syntax (that are recommended but not imposed)</li>
<li>Error codes</li>
<li>Data types</li>
</ul>
</div>
<div class="section"><p>The application programming interfaces provide a rich set of functions
to connect to a database management system, run SQL statements and to retrieve
data. Also included are functions to interrogate the SQL catalog of the database
and the capabilities of the driver.</p>
</div>
<div class="section"><p>ODBC drivers return standard error codes and translate data types
to a common (ODBC) standard. ODBC allows the application developer to obtain
integrated database error information, and to avoid some of the most complex
problems that are involved with making applications portable.</p>
</div>
<div class="section"><h4 class="sectiontitle">What you can do with ODBC:</h4><p>Use ODBC to:</p>
<ul><li>Send SQL requests to the database management system (DBMS).</li>
<li>Use the same program to access different database management system (DBMS)
products without recompiling.</li>
<li>Create an application that is independent of the data communications protocol.</li>
<li>Handle data in a format convenient to the application.</li>
</ul>
</div>
<div class="section"><p>The flexibility of ODBC APIs allows you to use them in transaction-based,
line-of-business applications (where the <span class="keyword">SQL</span> is
predefined) and also in query tools (where the select statement is created
at run time).</p>
</div>
<div class="section"><h4 class="sectiontitle">Structured Query Language (SQL):</h4><p>ODBC supports dynamic <span class="keyword">SQL</span>, which sometimes is associated
with poor performance. However, careful use of parameter markers enables repeated
statements to achieve static <span class="keyword">SQL</span>-like
performance. Also, extended dynamic <span class="keyword">SQL</span>a
special capability of the iSeries Access for Windows ODBC driverenables previously
prepared <span class="keyword">SQL</span> statements
to achieve performance that rivals static <span class="keyword">SQL</span>. </p>
<p>For
more information on SQL, see the IBM<sup>®</sup> <em>SQL Reference</em> book. View an HTML
online version of the book, or print a PDF version, from the <a href="../db2/rbafzmst02.htm">DB2 Universal Database™ for iSeries SQL
Reference</a> iSeries Information
Center topic.</p>
</div>
<div class="section"><h4 class="sectiontitle">iSeries Access
for Windows ODBC
topics:</h4><div class="note"><span class="notetitle">Note:</span> The information linked to from this page applies to the iSeries Access
for Windows 32-bit
ODBC driver, the iSeries Access
for Windows 64-bit
ODBC driver, and the iSeries Access for Linux<sup>®</sup> ODBC driver. For additional information
regarding setup for the iSeries Access for Linux ODBC driver see <a href="http://www.ibm.com/servers/eserver/iseries/linux/odbc"> iSeries ODBC
Driver for Linux.</a></div>
<p>You
can find documentation on the ODBC standard by searching for ODBC at the <a href="http://www.microsoft.com/" target="_blank">Microsoft<sup>®</sup> Web
site</a>.<img src="www.gif" alt="Link outside the Information Center" /></p>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rzaikodbcapiinfo.htm">Files required to build an ODBC application</a></strong><br />
Identify the files required to build an ODBC application.</li>
<li class="ulchildlink"><strong><a href="rzaikodbcapifunctions.htm">Implementation issues of ODBC APIs</a></strong><br />
Learn about implementations issues when using ODBC APIs.</li>
<li class="ulchildlink"><strong><a href="rzaikodbcperfconsd.htm">iSeries Access for Windows ODBC performance</a></strong><br />
See any of the following ODBC performance topics.</li>
<li class="ulchildlink"><strong><a href="rzaikodbcprogexamples.htm">ODBC program examples</a></strong><br />
The following ODBC programming examples demonstrate simple queries, and accessing and returning data by calling stored procedures. C/C++, Visual Basic and RPG programming language versions are provided.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaikcaapidb.htm" title="iSeries Access for Windows provides multiple programming interfaces for accessing database files on the iSeries server.">iSeries Access for Windows: Database programming</a></div>
</div>
</div>
</body>
</html>