Solved

How to connect to SQL Server

Posted on 2004-08-18
4
172 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now