This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes more then one Drivers at once Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "more then one Drivers at once" Watch "more then one Drivers at once" New topic
Author

more then one Drivers at once

Shrawan Bhageria
Ranch Hand

Joined: Jun 20, 2005
Posts: 52
HI ALL

Can we Load more then one Drivers at once?
if yes than pl. explain with example

thanks
shrawan
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41137
    
  45
Yes, you can open connections to different databases using different drivers at the same time. I don't think an example is necessary; simple duplicate the code you use to connect to your database and change the parameters - done!


Ping & DNS - my free Android networking tools app
Yilmaz Mete
Greenhorn

Joined: Dec 23, 2003
Posts: 28
Class.forName() registers the forName()'s parameter class with the DriverManager once and only once; and these drivers map specific URLs onto themselves. "jdbc.drivers" system property contains them actually too.

Ex.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: more then one Drivers at once
 
Similar Threads
JDBC Platform/version issue
JDBC Drivers
Regarding Class loading
Does the UK have a native criminal class?
Class loading