In computing, Open Database Connectivity (ODBC) is a standard application programming interface (API) for accessing database management systems (DBMS). The designers of ODBC aimed to make it independent of database systems and operating systems.[citation needed] An application written using ODBC can be ported to other platforms, both on the client and server side, with few changes to the data access code.
ODBC Overview
ODBC has become the de-facto standard for standards-based data access in both relational and non-relational database management systems (DBMS). The ODBC standard enables maximum interoperability thereby enabling application developers to write a single application to access data sources from different vendors. ODBC is based on the Call-Level Interface (CLI) specifications from Open Group and ISO/IEC for database APIs and uses Structured Query Language (SQL) as its database access language.
How to Use ODBC to Access SQL Data
Windows 7 64-bit
Click Start > Computer
Browse to the C: drive
Open the Windows folder
Open the SysWOW64 folder
Double-click on the odbcad32.exe file to open the ODBC Data Sources Administrator window
Select the System DSN tab
Click Add
Select SQL Server and click Finish
Complete the DSN Configuration wizard (see example screen shots below)
Windows 7 32-bit
Click Start > Computer
Browse to the C: drive
Open the Windows folder
Open the System32 folder
Double-click on the odbcad32.exe file to open the ODBC Data Sources Administrator window
Select the System DSN tab
Click Add
Select SQL Server and click Finish
Complete the DSN Configuration wizard (see example screen shots below)
Windows XP
Click Start and select Settings > Control Panel > Administrative Tools
Double-click Data Sources (ODBC) to open the ODBC Data Source Administrator.
Select the System DSN tab
Click Add
Select SQL Server and click Finish
Complete the DSN Configuration wizard (see example screen shots below)
In Summary
It is important to understand that ODBC is designed to expose database capabilities, not supplement them. Thus, application writers should not expect that using ODBC will suddenly transform a simple database into a fully featured relational database engine. Nor are driver writers expected to implement functionality not found in the underlying database. An exception to this is that developers who write drivers that directly access file data (such as data in an Xbase file) are required to write a database engine that supports at least minimal SQL functionality. Another exception is that the ODBC component of the Windows SDK, formerly included in the Microsoft Data Access Components (MDAC) SDK, provides a cursor library that simulates scrollable cursors for drivers that implement a certain level of functionality.
Applications that use ODBC are responsible for any cross-database functionality. For example, ODBC is not a heterogeneous join engine, nor is it a distributed transaction processor. However, because it is DBMS-independent, it can be used to build such cross-database tools.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.