0% found this document useful (0 votes)
20 views6 pages

A Closer Look Into The ODBC World Blog - Data Access Worldwide

Uploaded by

bellodezio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views6 pages

A Closer Look Into The ODBC World Blog - Data Access Worldwide

Uploaded by

bellodezio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

02/12/24, 03:20 A Closer Look Into the ODBC World Blog | Data Access Worldwide

(./)

Blog

A Closer Look Into the ODBC World


v By Marcia Booth

What is ODBC
ODBC stands for Open Database Connectivity. It is an industry standard that defines a single application
programming interface (the ODBC API) to access a variety of “data sources”. Data sources can range from database
servers such as Microsoft SQL Server, Oracle, PostgreSQL or MySQL and even simpler data file formats such as Excel,
or even .TXT or .CSV files. The benefit of having one interface that can access many data sources is that it allows
business application programs to be database independent. Using the resources of ODBC and its data source
specific drivers, the DataFlex ODBC driver connects applications to various database backends transparently without
code changes.

“ODBC accomplishes DBMS independence by using an ODBC driver as a [standard] translation layer between the
application and the DBMS. The application uses ODBC functions through an ODBC driver manager with which it is
linked, and the driver passes the query to the DBMS*” using a database specific ODBC driver. (*Wikipedia)

Privacy - Termini

https://www.dataaccess.com/blog/systems-environments/a-closer-look-into-the-odbc-world-1341 1/6
02/12/24, 03:20 A Closer Look Into the ODBC World Blog | Data Access Worldwide

(./)

(https://www.dataaccess.com/MB_ODBCblog_Image1.png-f1325)

By using ODBC, applications gain flexibility to access different types of data from the same source code.

Basic ODBC Concepts


Database-Specific ODBC Drivers

Database specific ODBC drivers translate standard ODBC API calls from ODBC-enabled applications like DataFlex to
the specifics needed to connect to and access different data sources.

When the data source is a database server, the ODBC database driver may be referred to as the ODBC database
client driver or simply the client driver. Most database servers provide a specific version of their client drivers with a
related version of the server as well as in a separate installation program to set up the local client environments.
Even though older client drivers may be able to access newer database servers, to take full advantage of all features
that a server provides, the matching version of client driver must be installed.

Data Sources and ODBC Data Source Names

“A data source is simply the source of the data. It can be a file, a particular database on a DBMS, or even a live data
feed. The data might be located on the same computer as the program, or on another computer somewhere on a
network.*”
For use with ODBC, data sources are defined in a Data Source Name (DSN) created and stored using Microsoft’s
ODBC Administrator program. A DSN is “a specific set of data, the information required to access that data, and the
location of the data source.*” (* source: Microsoft)

Applications using ODBC for database access will normally use a DSN to access and process data stored in the
backend.

Microsoft’s ODBC Administrator

https://www.dataaccess.com/blog/systems-environments/a-closer-look-into-the-odbc-world-1341 2/6
02/12/24, 03:20 A Closer Look Into the ODBC World Blog | Data Access Worldwide

The Microsoft® ODBC Data Source Administrator manages ODBC database drivers and data sources. The
administrator program is on the Windows Control Panel under Administrative Tools. Beginning in Windows 8, the
(./) ODBC Data Sources, and on 64-bit operating systems there are 32-bit and 64-bit
Control Panel icon is named
versions.

When configuring DataFlex applications, DSNs must be defined using the 32-bit version of the ODBC Administrator.
When running ODBC Administrator (odbcad32.exe), make sure you run the one located at %windir%\SysWOW64\
(32 bits) and not the one at %windir%\system32\ (64 bits).

DataFlex and ODBC


Data Access Worldwide provides an ODBC driver that enables DataFlex applications to interface with the ODBC API
of the Driver Manager and, through it, any supported data source(s). DataFlex’s ODBC driver is an optionally licensed
connectivity component available for WebApp Server or Windows Client deployment licenses. Examples of ODBC
supported database servers that DataFlex can access via ODBC are: Oracle, MySQL and PostgreSQL.

The following files make up the required and optional components for DataFlex applications to use ODBC data
sources:

File Description

ODBC_Drv.dll DataFlex ODBC Driver core component


ODBC_Drv.int DataFlex ODBC Driver’s global configuration file
ODBC_Drv_Database.int Generic ODBC database configuration file
<databasebackendname>.int Optional configuration file for <databasebackendname>
ODBC_DRV_DriverDef.xml DataFlex Studio ODBC configuration file

The .INT configuration files shown above are used with DataFlex to define and control the ODBC database
environment. ODBC_DRV_Database.int is generic and used for all ODBC connections. Optional .INT files can be
database specific (<DatabaseBackendName>.int), to optimize a specific database backend.

The ODBC_DRV.int is DataFlex’s global ODBC configuration file; all settings included in that file will be applied when
the DataFlex ODBC Driver (odbc_drv.dll) is loaded to define how the driver should operate.

DataFlex ODBC Driver


The diagram below illustrates the DataFlex ODBC Driver’s position in an ODBC environment:

https://www.dataaccess.com/blog/systems-environments/a-closer-look-into-the-odbc-world-1341 3/6
02/12/24, 03:20 A Closer Look Into the ODBC World Blog | Data Access Worldwide

(./)

(https://www.dataaccess.com/MB_ODBCblog_Image2.png-f1326)

Conclusion
ODBC is a powerful, versatile industry standard method to access application data sources. By using DataFlex ODBC
Driver with other ODBC resources and data source connection options, applications can use the standard for
reliable, high performance database management options like Oracle, MySQL or PostgreSQL or other data sources
such as Excel spreadsheets, .CSV files and Microsoft Outlook data to easily integrate one or multiple data sources
into business solutions.

Support for DataFlex ODBC Driver and all connectivity options is available in the Data Access Worldwide “Database
Connectivity (https://support.dataaccess.com/Forums/forumdisplay.php?20-Database-Connectivity)” sub-forum and
according to our general support policies (https://www.dataaccess.com/resources/customer-support-1196).

Resources:

https://docs.microsoft.com/en-us/sql/odbc/microsoft-open-database-connectivity-odbc
(https://docs.microsoft.com/en-us/sql/odbc/microsoft-open-database-connectivity-odbc)
https://docs.microsoft.com/en-us/sql/odbc/reference/odbc-programmer-s-reference
(https://docs.microsoft.com/en-us/sql/odbc/reference/odbc-programmer-s-reference)

https://www.dataaccess.com/blog/systems-environments/a-closer-look-into-the-odbc-world-1341 4/6
02/12/24, 03:20 A Closer Look Into the ODBC World Blog | Data Access Worldwide

https://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.apdv.cli.doc/doc/c0007944.html
(https://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.apdv.cli.doc/doc/c0007944.html)
(./)
https://msdn.microsoft.com/en-us/library/w558zwfc.aspx (https://msdn.microsoft.com/en-
us/library/w558zwfc.aspx)
https://docs.microsoft.com/en-us/sql/odbc/admin/odbc-data-source-administrator
(https://docs.microsoft.com/en-us/sql/odbc/admin/odbc-data-source-administrator)
https://docs.microsoft.com/en-us/sql/odbc/reference/what-is-odbc (https://docs.microsoft.com/en-
us/sql/odbc/reference/what-is-odbc)
https://docs.microsoft.com/en-us/sql/odbc/reference/odbc-and-the-standard-cli (https://docs.microsoft.com/en-
us/sql/odbc/reference/odbc-and-the-standard-cli)
https://docs.microsoft.com/en-us/sql/odbc/reference/develop-app/standards-compliant-applications-and-drivers
(https://docs.microsoft.com/en-us/sql/odbc/reference/develop-app/standards-compliant-applications-and-
drivers)
http://www.opendatabasealliance.com/history.htm (http://www.opendatabasealliance.com/history.htm)
https://technet.microsoft.com/en-us/library/security/ms04-003.aspx (https://technet.microsoft.com/en-
us/library/security/ms04-003.aspx)

Read about: Using Git with DataFlex (https://www.dataaccess.com/blog/systems-environments/using-git-with-


dataflex-1596)
Read about: Sharing SQL Server Databases via Scripting (https://www.dataaccess.com/blog/systems-
environments/sharing-sql-server-databases-via-scripting-1336)
FlexLinks Newsletter

Sign up today to stay informed!

SIGN UP

Blog Categories

Company (https://www.dataaccess.com/blog/company-133) 1

DataFlex (https://www.dataaccess.com/blog/dataflex-369) 27

DataFlex Reports (https://www.dataaccess.com/blog/dataflex-reports-232) 7

Dynamic AI (https://www.dataaccess.com/blog/dynamic-ai-367) 4

Systems & Environments (https://www.dataaccess.com/blog/systems-environments-866) 10

Community (https://www.dataaccess.com/blog/community-137) 3

Upcoming Event

https://www.dataaccess.com/blog/systems-environments/a-closer-look-into-the-odbc-world-1341 5/6
02/12/24, 03:20 A Closer Look Into the ODBC World Blog | Data Access Worldwide

(./)
DataFlex Support Lab:
Custom Controls
November 6 | | Virtual
(https://www.dataaccess.com/events/dataflex-
support-lab-custom-controls-1911)

© 2024 Data Access Corporation. All rights reserved. | PRIVACY POLICY (https://www.dataaccess.com/privacy-policy-876) | COOKIE
POLICY (https://www.dataaccess.com/cookie-policy-884)

q G 1 e

https://www.dataaccess.com/blog/systems-environments/a-closer-look-into-the-odbc-world-1341 6/6

You might also like