Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Maddison Hughes   on Feb 04 In Java Category.

  
Question Answered By: Casey Montgomery   on Feb 04

To begin connecting to a data source, you first need to instantiate
an object of your jdbc  driver. This essentially requires only one
line of code, a command to the DriverManager, telling the Java
Virtual Machine to load the bytecode of your driver  into memory,
where its methods will be available to your program. The String
parameter below is the fully qualified class name of the driver you
are using for your platform combination:

Class.forName("org.gjt.mm.mysql.Driver").newInstance();


Type of driver: JDBC-ODBC Bridge, Native-API, JDBC-Net, Native
Protocol
jdbc-odbc bridge :two step process.In client side we must install
ODBC.
Native-API:This is accessed via the Java Native Interface (JNI).
JDBC-Net :Three tiers connection required
Native Protocol : Every databse required own database.This is costly

Share: 

 

This Question has 14 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on jdbc and sql Or get search suggestion and latest updates.


Tagged: