Connect sql2008 times wrong

Source: Internet
Author: User

Recently set up the company's projects locally (on weekends to work overtime), but after the connection, found that the program background error, error message: This server version is not supported. The destination server must be SQL Server 2000 or a later version.

The Local is SqlServer2008, the company is SqlServer2005, the analysis found, is quoted JDBC Driver version is caused.

Microsoft has two connection jar packages:Sqljdbc.jar and Sqljdbc4.jar. Their comparison is as follows:

1,sqljdbc.jar:

    The Sqljdbc.jar class Library provides support for JDBC 3.0.

The Sqljdbc.jar class library requires the use of version 5.0 of the Java Runtime Environment (JRE). When connecting to a database, using Sqljdbc.jar on JRE 6.0 throws an exception.

2,sqljdbc4.jar: The Sqljdbc4.jar class Library provides support for JDBC 4.0.  It includes not only all the features of Sqljdbc.jar, but also the new JDBC 4.0 method.    So replace the Sqljdbc.jar with the Sqljdbc4.jar. Note: Download connection for official Microsoft Jar:
Http://www.microsoft.com/downloads/details.aspx?FamilyID=a737000d-68d0-4531-b65d-da0f2a735707&displayLang=zh-cn

After selecting the download, the pressurized "2052\sqljdbc_3.0.1301.101_chs.tar.gz", after the file, contains the Sqljdbc.jar and Sqljdbc4.jar.

Connect sql2008 times wrong

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.