Solved

How to connect to SQL Server

Posted on 2004-08-18
4
174 Views
Last Modified: 2010-03-31
Hey Friends
  I am trying to connect to SQL Server(precsely I am using MSDE v1.0) but i can connect using odbc only.
Can someone please suggest how to do the same with some sample code.
Also I have created an installer that installs latest jre on the target machine , is that jdbc driver is also installed by the same or i need to include some other class/driver so that my program works at even the machine on which jdk is not installed.
0
Comment
Question by:vikrant_kpr
  • 2
4 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 11833981
0
 
LVL 35

Expert Comment

by:girionis
ID: 11834532
You could also try this link: http://java.sun.com/docs/books/tutorial/jdbc/
0
 
LVL 4

Accepted Solution

by:
91mustang earned 125 total points
ID: 11835951
>>is that jdbc driver is also installed by the same or i need to include some other class/driver so that my program works at even the machine on which jdk is not installed.


The JDBC-ODBC driver would be installed with the JRE. I find other drivers (type 3 and 4) are much better. Try this one out, it is much faster and more stable:

http://jtds.sourceforge.net/

All of the instructions for use are at that page. If you get stuck just ask

cheers
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.

777 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