Found 34484 Articles for Programming

Explain the architecture of JDBC?

Krantik Chavan
Updated on 30-Jul-2019 22:30:25

3K+ Views

If you want to develop a Java application that communicates with a database, you should use JDBC API. A driver is the implementation of the said API; various vendors provide various drivers, you need to use a suitable driver with respect to the database you need to communicate with. The driver manager loads the driver and manages the driver.Following are the components of JDBC:JDBC DriverManager: The DriverManager class of the java.sql package manages different types of JDBC drivers. This class loads the driver classes. In addition to this whenever a new connection establishes it chooses and loads the suitable driver ... Read More

What are the main features of JDBC?

Krantik Chavan
Updated on 30-Jul-2019 22:30:25

3K+ Views

Following are the new features of JDBC:Makes JDBC calls: While using JDBC Java applications can make JDBC calls these calls submit SQL statements to the driver which in turn accesses the data from the database.Portability: JDBC provides wide level portability.Using JDBC you can request any type of queries from the database.You can use JDBC with different Java applications such like Java Applets, Java Servlets, Java Server Pages (JSPs). Enterprise JavaBeans (EJBs). To communicate with database.JDBC provides support for advanced datatypes such as BLOB, CLOB etc.Using JDBC you can set save points for database and layer you can rollback to desired ... Read More

What are the important components of JDBC?

Krantik Chavan
Updated on 30-Jul-2019 22:30:25

1K+ Views

To communicate with the Database using JDBC you need the following components.JDBC DriverManager: The DriverManager class of the java.sql package manages different types of JDBC drivers. This class loads the driver classes. In addition to this, whenever a new connection establishes it chooses and loads the suitable driver from the previously loaded ones.Note: From JDBC 4.0 the drivers in the CLASSPATH will be loaded automaticallyJDBC API: It is a Java abstraction which enables applications to communicate with relational databases. It provides two main packages namely, java.sql and javax.sql. It provides classes and methods to connect with a database, create statements ... Read More

What is JDBC?

Nancy Den
Updated on 30-Jul-2019 22:30:25

370 Views

JDBC stands for Java Database Connectivity. It is a Java library/specification released by sun microsystems. It enables Java applications to communicate with databases.A JDBC driver is an implementation of the above-mentioned specification i.e. it contains the classes and interfaces to communicate with the database. Using JDBC driver and JDBC API you can write Java applications which will send a request to the database and retrieve the results.I.e. you can connect to the database, create SQL statements, Execute the SQL statements, access and modify the resultant tables using this library.Fundamentally, JDBC is a specification that provides a complete set of interfaces ... Read More

What are the disadvantages of ODBC drivers?

Nancy Den
Updated on 30-Jul-2019 22:30:25

1K+ Views

Beside its advantages, ODBC has several drawbacks. Following are the main drawbacks of ODBC.Keeps on changing: ODBC is provided by Microsoft and like other Microsoft products it keeps evolving and the companies using ODBC should keep up with it. In addition to this, you need to pay to use ODBC SDK 8 and later versions.Usage of JNI libraries: Though ODBC solves vendor dependency problems by providing common API to interact with all the databases, at the end of the day ODBC is also a native API therefore, you need to use JNI in your Java applications which is not suggestable.Uncertain: ... Read More

Explain Single and multi-tire architectures of ODBC?

Nancy Den
Updated on 30-Jul-2019 22:30:25

254 Views

Generally, ODBC architecture is of two types single-tier and multi-tier.Single-tier architectureThis is an ODBC architecture which involves single-tier ODBC drivers. In singletier ODBC architecture, the ODBC driver receives ODBC requests/calls from the application and directly interacts with database files. It passes the SQL commands corresponding to the received calls and retrieves the results.Example: Microsoft AccessMultiple-tier architectureThis is an ODBC architecture which involves multiple-tier ODBC drivers. This is a common architecture and is based on client server communication.Client: The application that makes ODBC requests, the driver and the DriverManager together considered as a client.Server: The database and the database software (that ... Read More

What are the important components of ODBC?

Nancy Den
Updated on 30-Jul-2019 22:30:25

824 Views

Following are the main components of the ODBC architecture.Application: An application which communicates with the databases using ODBC functions is ODBC application.ODBC driver manager: Whenever an application calls a function of ODBC API to communicate with a database, the driver manager accepts and passes it to ODBC driver and accepts the results from the driver and returns it back to the application.ODBC driver: The ODBC driver accepts the application function calls from the driver manager and connects to the specified DataSource, retrieves the required data and returns it to the driver manager.Data source: A DataSource contains a set of data, ... Read More

Explain the ODBC architecture?

Nancy Den
Updated on 26-Jun-2020 10:39:16

1K+ Views

ODBC architecture consists of the following components.Application: An application which communicates with the databases using ODBC functions is an ODBC application.ODBC driver manager: The ODBC diver manager manages the underlying drivers in an application. Whenever an application calls a function of ODBC API to communicate with a database, the driver manager accepts those function calls and passes them to the ODBC driver. When the driver retrieves the results from the database the driver manager accepts the results from the driver and returns it back to the application.ODBC driver: The ODBC driver accepts the application function calls from the driver manager ... Read More

What are the features of ODBC?

Nancy Den
Updated on 30-Jul-2019 22:30:25

1K+ Views

ODBC drivers implements standard SQL syntax, following are the important features of ODBC:Inter-operability: Using ODBC driver you can develop applications which can communicate with different Database Management Systems and, you can switch/migrate your application from one database to other easily.SQL Syntax: ODBC implements SQL syntax for easy understanding. Whenever an SQL statement passed to the ODBC driver it matches the given statement to the SQL 92 standard and writes the respective SQL statement that is accepted by an underlying database.Rich metadata: ODBC provides rich support to metadata. It provides functions to get data about both functions and datatypes.Attributes: ODBC also ... Read More

What is ODBC?

Nancy Den
Updated on 30-Jul-2019 22:30:25

4K+ Views

ODBC stands for Oracle Database Connectivity. It is an API which is used to access different databases.The OFBC driver uses the Open Database connectivity interface provided by Microsoft to communicate with the databases. It is independent of Databases and platforms and operating systems. Once you develop an application using ODBC you can run it on other platforms with little change in Data access code. ODBC uses SQL syntax and it is based on Open call level interface.

Advertisements