The moose likes JDBC and Relational Databases and the fly likes Working with JTDS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Working with JTDS " Watch "Working with JTDS " New topic

Working with JTDS

shashi booshan

Joined: Jun 13, 2008
Posts: 14
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.


Thanks & Regards
- Shashi
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

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.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: Working with JTDS
It's not a secret anymore!