?
Solved

How to connect to SQL Server

Posted on 2004-08-18
4
Medium Priority
?
178 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
[X]
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
  • 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 500 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month14 days, 20 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