Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

connect remotely to database

 
sherif hathout
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Report post to moderator
Dear/All
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)


Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
Connection con = DriverManager.getConnection("jdbc b2://host:50002/DBname", "user", "password");
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64849
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Duplicate of this post.

Please do not cross-post the same question in multiple forums.
 
    Bookmark Topic Watch Topic
  • New Topic