I have a doubt in JDBC. Suppose i load more than 1 driver in the connection say Class.forName("sun.jdbc.odbc.jdbcodbcDriver"); Class.forName("some other dirver) and if i say Connection con = DriverManager.getConnection(the driver) Which driver will the application take, is it the one specified in the connection object. If so what will happen to other drivers. Do let me know at the earliest
thanks and regards barbie
Senthil B Kumar
posted 12 years ago
Although there is typically only one driver registered in each application, you can load multiple drivers in one application. Load each driver using the same methods as above. The DriverManager decides which driver to use when connecting to the database
Work like you don't need the money. Love like you've never been hated. Dance like nobody's watching. Sing like nobody's listening. Live like it's Heaven on Earth.
Currently I Reside HereWEBlog