aspose file tools
The moose likes JDBC and Relational Databases and the fly likes What is the correct URL syntax????? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "What is the correct URL syntax?????" Watch "What is the correct URL syntax?????" New topic
Author

What is the correct URL syntax?????

Bob Kimmel
Greenhorn

Joined: Aug 27, 2003
Posts: 26
I am trying to connect to my Sybase db via a call within my jsp. Here is the url string that I have:
sybase:jdbc:Tds:servername ortnumber/dbname

in getConnection(url, "username", "password")

I keep getting an IOException and connection refused. I am unsure of how to identify the dbname after the port. I have seen it done about a hundred ways and none of them are working for me. Any clues? No one seems to answer any of my posts so I am keeping my fingers crosse on this.
Thanks
[ March 17, 2005: Message edited by: Bear Bibeault ]
Bob Kimmel
Greenhorn

Joined: Aug 27, 2003
Posts: 26
I reversed the order, it should be jdbc:sybase:Tds.... not the way I typed it in the original message so that was a typo here not in the actual code.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the correct URL syntax?????
 
It's not a secret anymore!