How to link JAVA with SQL Server 2000 using Jbuilder?

Posted on 2003-03-15
Medium Priority
Last Modified: 2012-06-27
I'm doing my final year project.I would like to know to know how to link JAVA with SQL Server 2000 using JBuilder.Please do give me some tutorials on how to  link them as i'm new to this area.I'm not so sure on what driver to use as well.Please give me some codes or anything that can help me.Thank You !
Question by:Alisha23
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 35

Accepted Solution

TimYates earned 450 total points
ID: 8142413
You will need to use JDBC

You can download the JDBC drivers for SQL Server from here:


it's an opensource implementation of it :-)

(you can get it from here)

As they say:

"Being a type 4 JDBC driver, jTDS does not need any kind of installation. Just add jtds.jar (or whatever the name of your specific version of jar is) to your existing classpath and you're done. What's more important is the class name of the driver and DataSource implementations and the URL format. The class names are net.sourceforge.jtds.jdbc.Driver (for the Driver implementation) and net.sourceforge.jtds.jdbcx.TdsDataSource (for the DataSource implementation). The URL format is:

where <server_type> is one of either 'sqlserver' or 'sybase' (their meaning is quite obvious), <port> is the port the server is listening to (with a default of 1433 for SQL Server and 4000 for Sybase) and <database> is the database name -- or catalog, by the JDBC terminology -- (default is 'master'). For more information about specific properties supported by jTDS and other questions, check out the Frequently Asked Questions page.

Then, it's just a case of learning JDBC :-)

LVL 86

Expert Comment

ID: 8142458

Expert Comment

ID: 8142467
Connection con=DriverManager.getConnection("jdbc:odbc:DRIVER={SQL Server};DATABASE=databasename;UID=userid;PWD=password;SERVER=sererip;");

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses
Course of the Month11 days, 4 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question