jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes connect remotely to database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

connect remotely to database

sherif hathout

Joined: Nov 02, 2004
Posts: 18
please, I want to connect remotely to acertain DB on a server using hostname and port number. please it's urgent.

this code throws a SQLException(No suitable driver)

Connection con = DriverManager.getConnection("jdbc b2://host:50002/DBname", "user", "password");
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63873

Duplicate of this post.

Please do not cross-post the same question in multiple forums.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: connect remotely to database
It's not a secret anymore!