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 establishing jdbc connection 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 "establishing jdbc connection" Watch "establishing jdbc connection" New topic

establishing jdbc connection

ml behra

Joined: Dec 20, 2000
Posts: 8
Hi folks,
can any body help me with do we establish a connection.jconnect coz we are using sybase as the database.send me some sample code if possible.
thankx in advance
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
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);

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: establishing jdbc connection
Similar Threads
Moderators Talk A Lot
Jane " The SuperHuman " Griscti is eclipsed the mountain of 2000 posts.
Michael Ernest's 1000 posts
Somebody here should stop acting as a policeman