Hi friends, In JDBC 4 drivers are there among this which
driver is best and why it is best.Which driver is most
commonly used in web applications.
Answers were Sorted based on User's Feedback
Answer / rajesh
Type 4 Driver will be the best driver.Because the java
application will directly interacts with database without
middlewares. We want a jar file to connect directly(i.e
mysql connector jar file for mysql,ojdbc.jar to pracle
database).
| Is This Answer Correct ? | 9 Yes | 0 No |
ok , friend see ,there are three drivers and one protocol
which is type-3 ,ok.
My recommendation is to use type-4 dirver , why , because
it has seveal advantages than the predecessor drivers.
Advantages
----------
->It is directly interacting with database software.
->It does not need much conversions to be included.
->It is compatible with internet program and applet programs
like this many advantages are there list will go on.
ok, now , if you are developing 2-tier project than use
type-4 dirver , if it is web application than use type-3
with type-4 ok
for more information call 9989683928 , i belong to hyd
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / vicky
Because Type IV driver classes are written purely in
java.and it interacts directly with the database we dont
need to specify any ODBC to interact with the database.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / vinayak_ankam
alljava because it's have capability work with any data
base and cliet did not requeried to install any software.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / srinu
Among jdbc driver TYPE-III driver(or) Net protocol driver is
best. because their is no worry about connection object and
connection pooling,middleware services.THe jdbc connection
are over all taken by application server.A programer just
use the connection object.
In webapplication TYPE-III driver are mostly used.To work
with TYPE-III driver are in application server
| Is This Answer Correct ? | 2 Yes | 2 No |
What is the function of setautocommit?
How many ways that we can view a result set?
What are the measures to connect to the db using jdbc?
Name the types of jdbc drivers.
What is an outer join?
Is JDBC a language or Application?
What is jdbc and its types?
java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDr iver? I get this error at run time.I used oracle10G. I set CLASS PATH:C:\oraclexe\app\oracle\product\10.2.0 \server\jdbc\lib\ojdbc14.jar; I write JDBC PROGRAM like import java.sql.*; class Example { public static void main(String args[]) { try { Class.forName ("oracle.jdbc.driver.OracleDriver"); System.out.println("Driver Loaded"); Connection con=DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:xe","system","salmas"); System.out.println("Driver Connected"); Statement st=con.createStatement(); ResultSet rs=st.executeQuery("select * from emp"); while(rs.next()) { System.out.println(rs.getInt(1)); System.out.println(rs.getString(2)); System.out.println(rs.getString(3)); } st.close(); con.close(); } catch(Exception e) { System.out.println(e); } finally { System.out.println("it's finally block executed"); } } }
What is jdbc and odbc in java?
Which constraint cannot be specified as an explicit constraint and should be specified with the column only ?
What is JDBC Transaction Management and why do we need it?
What is jdbc url for mysql?