From Twitter

JAVA DATABASE CONNECTIVITY JDBC Vs. ODBC

JAVA DATABASE CONNECTIVITY JDBC Vs. ODBC


Now, we shall study the comparison between JDBC and ODBC. The most widely
used interface to access relational databases today is Micorsoft’s ODBC API. ODBC
stands for Open Database Connectivity, a standard database access method developed
by the SQL Access group in 1992. Through ODBC it is possible to access any data
from any application, regardless of which database management system (DBMS) is
handling the data. ODBC manages this by inserting a middle layer, called a database

driver, between an application and the DBMS. The purpose of this layer is to translate
the application's data queries into commands that the DBMS understands.

Microsoft ODBC API offers connectivity to almost all databases on almost all
platforms and is the most widely used programming interface for accessing relational
databases. But ODBC cannot be used directly with Java Programs due to various
reasons described below.

1) ODBC cannot be used directly with Java because, it uses a C interface. This will
have drawbacks in the security, implementation, and robustness.

2) ODBC makes use of Pointers, which have been removed from Java.

3) ODBC mixes simple and advanced features together and has complex structure.
Hence, JDBC came into existence. If you had done Database Programming with
Visual Basic, then you will be familiar with ODBC. You can connect a VB
Application to MS-Access Database or an Oracle Table directly via ODBC. Since
Java is a product of Sun Microsystems, you have to make use of JDBC with ODBC in
order to develop Java Database Applications.

JDBC is an API (Application Programming Interface) which consists of a set of Java
classes, interfaces and exceptions With the help of JDBC programming interface, Java
programmers can request a connection with a database, then send query statements
using SQL and receive the results for processing.

According to Sun, specialised JDBC drivers are available for all major databases —
including relational databases from Oracle Corp., IBM, Microsoft Corp., Informix
Corp. and Sybase Inc. — as well as for any data source that uses Microsoft's Open
Database Connectivity system.
The combination of Java with JDBC is very useful because it lets the programmer run
his/ her program on different platforms. Some of the advantages of using Java with
JDBC are:

• Easy and economical
• Continued usage of already installed databases
• Development time is short
• Installation and version control simplified


No comments:

Post a Comment

Labels

(MCS-031 (6) 2011 (5) 4nf (1) 5nf (1) ACCESS CONTROL In Relational Database (1) ALGORITHMICS (5) assignment 2014 2015 (1) AVAILABLE TOOLS & ALGORITHMS (5) BCA (1) BINARY SEARCH (1) Block Nested Loop Join (1) Build and Fix Model (1) BUILDING BLOCKS OF ALGORITHMS (1) CHARACTERISTICS OF AN ALGORITHM (2) Core Java (1) Data Communication Network Security (1) DATABASE SECURITY (1) EER tool (1) ELEMEMTARY ALGORITHMICS (2) ENHANCED ER TOOLS (1) EVOLUTION (1) EXAMPLE OF AN ALGORITHM (2) Indexed Nested-Loop Join (1) install servelet engine (1) INTRODUCTION (1) Iterative Enhancement Model (1) Java Server Pages (1) JDBC (1) JSP (2) LEVELS OF DATABASE SECURITY (1) MCA (9) MCA 051 (1) MCA 3rd Semester (8) MCA 4th Semester (1) MCA 5 sem (1) MCS-031 (7) MCS-031 : DESIGN AND ANALYSIS OF ALGORITHM (14) MCS-032 (1) MCS-033 (1) MCS-034 (2) MCS-035 (1) mcs-041 (2) MCS-042 (1) mcs-043 (2) mcs-052 solved assignment (1) MCSL-036 (2) Nested loop join (1) OBJECTIVES (1) Operating System (2) OUTLINE OF ALGORITHMICS (1) Principles of Management and Information Systems (1) PROBLEMS (1) QUERY PROCESSING AND EVALUATION (1) Query processing Optimisation (1) Question Papers (8) Related Topic (9) relational Database (1) SELECT OPERATION Query Processing (1) Servlet (1) Servlet Programme (1) Servlet Programming (1) SOFTWARE DEVELOPMENT MODELS (4) SOFTWARE ENGINEERING (4) Solution (7) Solved Assignment 2013 2014 (6) SOME PRE-REQUISITES AND Asymptotic Bounds ASYMPTOTIC BOUNDS INTRODUCTION (1) STATISTICAL DATABASE SECURITY (1) structure (1) SUMMARY (1) Waterfall Model (1) Write a C program to print the following triangle (1)