jQuery in Action, 2nd edition*
The moose likes JDBC 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
Bookmark "Working with JTDS " Watch "Working with JTDS " New topic
Author

Working with JTDS

shashi booshan
Greenhorn

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.



regards
Shashi


Thanks & Regards
- Shashi
Paul Sturrock
Bartender

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
 
 
subject: Working with JTDS
 
Similar Threads
Hibernate in Netbeans 6.9.1
JDBC connection with SQL Server 2008 R2
Working with JTDS
Creating a dataSource for a Web-Application
HELP Error :JBoss connecting to MS SQL server