aspose file tools*
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
JavaRanch » Java Forums » Databases » JDBC
Bookmark "establishing jdbc connection" Watch "establishing jdbc connection" New topic
Author

establishing jdbc connection

ml behra
Greenhorn

Joined: Dec 20, 2000
Posts: 8
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

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: establishing jdbc connection