Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Other Development Tools
 Java-Sql Server Connection

Author  Topic 

amitkumarmadhukar
Starting Member

45 Posts

Posted - 2004-07-23 : 04:32:25
I have SQL Server 7.0 /Sql server 2000 with SP1,and SP2
i developer of Java and Want to Connect Java with SQL Server.
Please give me the driver (JDBC Driver) and example Code of Database Conection with any example Database of Sql Server

please also give the classpath declaration style if any (Like in ORACLE)

i am very thankful to u.


amit kumar madhukar

AjarnMark
SQL Slashing Gunting Master

3246 Posts

Posted - 2004-07-26 : 17:26:45
You can get the driver from Microsoft at http://www.microsoft.com/downloads/details.aspx?FamilyId=07287B11-0502-461A-B138-2AA54BFDC03A&displaylang=en

-----------------------------------------------------
Words of Wisdom from AjarnMark, owner of Infoneering
Go to Top of Page

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2004-07-26 : 18:04:44
quote:
Originally posted by AjarnMark

You can get the driver from Microsoft at http://www.microsoft.com/downloads/details.aspx?FamilyId=07287B11-0502-461A-B138-2AA54BFDC03A&displaylang=en

-----------------------------------------------------
Words of Wisdom from AjarnMark, owner of Infoneering



I was just curious, does the JDBC driver require a client be installed? What about in a unix environment?



-ec
Go to Top of Page

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2004-07-26 : 18:10:09
btw, the JDBC driver from microsoft is not certified to run with SQL 7.

The connection strings you are looking for are in the help file that gets installed when you run setup.

Installing in unix apparently does not require a client. (answered my own question)



-ec
Go to Top of Page

webmad
Starting Member

1 Post

Posted - 2004-08-12 : 12:57:47
Unfortunately, JDBC driver DOES NOT work with SQL Server...
Trying to connect to a SQL 7 server gives the following Exception:
"java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]This version of the JDBC driver only supports Microsoft SQL Server 2000. You can either upgrade to SQL Server 2000 or possibly locate another version of the driver."

I installed JDBC driver on my Linux machine and it works fine ;)

Bye,
-Pietro.
Go to Top of Page

Andraax
Aged Yak Warrior

790 Posts

Posted - 2004-08-13 : 03:12:44
There are alternatives to the Microsoft driver which is, I'm sad to say, not the best one around :(

Here is a good one which is also open source:
http://jtds.sourceforge.net/

It's fast, it supports BLOB's (which Microsofts driver doesn't), and it supports SQL Server 7.0/2000/2005.

/Andraax
Go to Top of Page
   

- Advertisement -