Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello all,

I am working on java application in that i want to save textbox data database table. I am using java 1.8 and sql server 2005. I want to create database connection. I want JDBC jar file for that which is compatable for sql server 2005 and java 1.8. Can anyone please provide me link. i have googled so much, downloaded so may files, buit eclipse is giving error:No suitable driver found for jdbc:microsoft:sqlserver://192.168.1.7/userdetails_aadhar. What to do? plz help

What I have tried:

I have tried all jdbc files available on microsoft website
Posted
Updated 31-Aug-18 2:29am

1 solution

Start here Microsoft JDBC Driver for SQL Server | Microsoft Docs[^] and follow the links. Some are Step 1: Configure development environment for Java development | Microsoft Docs[^] and Using the JDBC Driver | Microsoft Docs[^].

From the latter:
Quote:
The Microsoft JDBC driver jars are not part of the Java SDK and must be included in Classpath of user application.
and
Quote:
Applications that run in an IDE

Each IDE vendor provides a different method for setting the classpath in its IDE. Just setting the classpath in the operating system will not work. You must add sqljdbc.jar, sqljdbc4.jar, or sqljdbc41.jar to the IDE classpath.


I have googled a bit and found this description on configuring Eclipse for SQL Server: How to connect to Microsoft SQL Server database using Eclipse[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900