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 Is this possible 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 "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: 41137
    
  45
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......"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is this possible
 
Similar Threads
connection pooling
JDBC Connectivity
MS SQL driver
jdbc
problem with connecting to a SQLServer database