97 lines
6.2 KiB
HTML
97 lines
6.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="concept" />
|
|
<meta name="DC.Title" content="Overview of the iSeries Access ODBC driver" />
|
|
<meta name="abstract" content="Provides a general description of ODBC, and how you can use it with iSeries Access for Windows." />
|
|
<meta name="description" content="Provides a general description of ODBC, and how you can use it with iSeries Access for Windows." />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiiodbcadm.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiiodbc07.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzaiiodbc17" />
|
|
<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>Overview of the iSeries Access ODBC driver</title>
|
|
</head>
|
|
<body id="rzaiiodbc17"><a name="rzaiiodbc17"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Overview of the iSeries Access ODBC driver</h1>
|
|
<div><p>Provides a general description of ODBC, and how you can use it
|
|
with iSeries™ Access
|
|
for Windows<sup>®</sup>.</p>
|
|
<p>The iSeries Access
|
|
ODBC driver is a collection of application programming interfaces (APIs) for
|
|
accessing database information using Structured Query Language (SQL). Using
|
|
the iSeries Access
|
|
ODBC driver allows applications to access different databases on the iSeries server
|
|
using the same source code, and to handle data in the format most convenient
|
|
for those applications. ODBC provides an application developer a relatively
|
|
simple model for creating portable applications or components that must deal
|
|
with multiple DBMSs.</p>
|
|
<p>The ODBC architecture involves an application, driver manager, ODBC driver,
|
|
and a data source. iSeries Access provides both a 32-bit and 64-bit
|
|
ODBC driver. The 64-bit ODBC driver is automatically installed along with
|
|
the 32-bit ODBC driver when running under a 64-bit version of Windows .
|
|
ODBC applications running in 64-bit versions of Windows will automatically use the appropriate
|
|
ODBC driver, depending on what bit version the application was compiled for.
|
|
For example, the 64-bit driver can only be used by a 64-bit application.</p>
|
|
<p>In order for an application to use ODBC you must set up a data source.
|
|
You can use the ODBC Administrator to set up a data source. There are two
|
|
versions of the ODBC Administrator, 32-bit and 64-bit, that can be accessed
|
|
from the iSeries Access
|
|
for Windows folder.
|
|
When using ODBC Administrator, you have the option to setup three different
|
|
types of data sources: User, System, and File data sources. For more information
|
|
about how data sources are configured, see 64-bit ODBC Support, in the iSeries Access
|
|
for Windows' User's Guide.</p>
|
|
<br /><img src="rv3w364.gif" alt="ODBC components" /><br /><p><strong>Application.</strong> Performs processing and calls ODBC functions to run
|
|
SQL statements.</p>
|
|
<p><strong>Driver manager.</strong> Processes ODBC function calls and forwards the requests
|
|
to the driver.</p>
|
|
<p><strong>Driver.</strong> Processes ODBC function calls, submits SQL requests to a
|
|
specific data source, and returns results to the application.</p>
|
|
<p><strong>Data source.</strong> To use a data source you have to create a Data Source
|
|
Name (DSN). A DSN contains information about how to access the DBMS. You can
|
|
specify any of the following DSNs:</p>
|
|
<ul><li><strong>User DSN:</strong> These data sources are local to a computer, and may only
|
|
be available to the user who created them. This information is stored in the
|
|
registry.</li>
|
|
<li><strong>System DSN:</strong> These data sources are local to a computer, rather
|
|
than dedicated to a user. The system, or any user having privileges, can use
|
|
a data source set up with a system DSN. This information is stored in the
|
|
registry.<div class="note"><span class="notetitle">Note:</span> On a PC with a 64-bit processor, the system part of the registry
|
|
is split into 32-bit and 64-bit pieces. System DSNs configured using the 32-bit
|
|
ODBC Administrator are available only to 32-bit applications. Also, System
|
|
DSNs configured using the 64-bit ODBC Administrator are available only to
|
|
64-bit applications.</div>
|
|
</li>
|
|
<li><strong>File DSN:</strong> These are file-based data sources that may be shared
|
|
between all users that have the same drivers installed so that they have access
|
|
to the database. These data sources do not need to be dedicated to a user,
|
|
or to be local to a computer.</li>
|
|
</ul>
|
|
<p>For more information about ODBC, refer to the Microsoft<sup>®</sup> Web site.</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaiiodbcadm.htm" title="iSeries Access for Windows includes an ODBC driver that can allow your applications convenient access to DB2 UDB for iSeries databases in your network. This topic provides an overview of ODBC, instructions for setting up the driver, and a troubleshooting guide.">ODBC administration</a></div>
|
|
</div>
|
|
<div class="reltasks"><strong>Related tasks</strong><br />
|
|
<div><a href="rzaiiodbc07.htm" title="You must specify the data source for your application to access and manipulate data.">Specify the ODBC data source</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |