Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the correct URL syntax?????

 
Bob Kimmel
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic