You are currently browsing the monthly archive for February 2011.

Most of the projects require connecting to a database, the basic steps involved in connecting to a database using JDBC are:

  1. Loading the appropriate driver,
  2. Establishing a connection to the database,
  3. Executing the SQL queries using objects of Statement, PreparedStatement, etc., and
  4. Using the ResultSet object and closing the connection.

All these steps excluding the first step appears to have some purpose and can be understood intuitively. Loading of the driver can be explained as the process of loading the driver class into the memory for using its functionality during the execution process.

The different ways by which we can load a JDBC driver are illustrated:

Read the rest of this entry »

Blog Stats

  • 9,744 hits

My tweets

Follow me on twitter
Follow

Get every new post delivered to your Inbox.