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