Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Working with JTDS

 
shashi booshan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys i am working with JTDS Driver for SQL 2005 for the first time with NetBeans IDE 6.
Netbeans has recognized the driver but i need port number,host name and connection string to establish a connection and working further.
Please let me know.



regards
Shashi
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, assuming you haven't changed anything the port will be 1433. The host will be the name or IP address that your SQL Server instance is running on.

If you have these details, the JDBC url is easy enough to build. See the jTDS documentation for the syntax.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic