Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ODBC vs JDBC vs ADO.NET

Tags:

What exactly are ODBC, JDBC and ADO.NET? What are the links between them?

like image 202
Bastien Vandamme Avatar asked Feb 22 '11 15:02

Bastien Vandamme


People also ask

What is the difference between ADO and ODBC?

What is the difference between ODBC and ADO? ODBC is an open interface, which can be used by any application to communicate with any database system, while ADO is a wrapper around OLE DB (which is the successor to ODBC). If the database does not support OLE (non-OLE environments) then ODBC is the best choice.

Does ADO.NET use ODBC?

To access an ODBC data source using ADO.NET, use the . NET Framework Data Provider for ODBC.

Is ADO faster than ODBC?

There is no speed advantage inherent to ODBC vs ADO.NET, but there is some speed loss for such bridged solutions, due to the extra layer of API translation.

Which is better ODBC or JDBC?

But as the number of records were increased, Java(JDBC) came out as the winner. The reason that I thought of is that may be the ODBC drivers load much faster than JDBC but the access speed of JDBC is better than ODBC, hence, such results.


2 Answers

These are all different data access technologies.

ODBC is an (older) open standard. It's designed to be database and technology neutral. JDBC and ADO.NET can both actually use ODBC internally as a provider, if requested.

JDBC is a similar concept, but designed to be a standard for Java.

ADO.NET is a .NET data access technology.

like image 170
Reed Copsey Avatar answered Sep 23 '22 00:09

Reed Copsey


ODBC (Open Database Connectivity) is a standard API that can be used to communicate with databases.

JDBC (Java Database Connectivity) is a Java standard that can be used to communicate with databases.

ADO.Net is a .Net standard that can be used to communicate with databases.

Individual databases, such as SQL Server or MySQL, have drivers that implement each of these APIs.

In addition, there are ODBC implementations for JDBC and ADO.Net that allow them to use ODBC drivers.

like image 39
SLaks Avatar answered Sep 19 '22 00:09

SLaks