Less than 42 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

establishing jdbc connection  RSS feed

 
ml behra
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,
can any body help me with jconnect.how do we establish a connection.jconnect coz we are using sybase as the database.send me some sample code if possible.
thankx in advance
madhavi.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You do it the same way that you do for any other JDBC compliant database. Here is the getConnection:
con = DriverManager.getConnection ("jdbc:sybase:Tds:" + machine + ":" + port + "/" + dbname, props);
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!