jQuery in Action, 2nd edition*
The moose likes JDBC and the fly likes Is this possible Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Is this possible" Watch "Is this possible" New topic
Author

Is this possible

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

What will happen if I use like this :

Connection con1 =DriverManager.getConnection(jdbcracle:thin:user/pass@databasestuff);

Connection con2 = DriverManager.getConnection(“dfferent database “)



Save India From Corruption - Anna Hazare.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41085
    
  43
What happened when you tried it?


Ping & DNS - my free Android networking tools app
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Hi,

It will work if you have added the jar files for both of these databases.

Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
 
Don't get me started about those stupid light bulbs.
 
subject: Is this possible
 
Similar Threads
connection pooling
JDBC Connectivity
MS SQL driver
jdbc
problem with connecting to a SQLServer database