Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 586943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:09:34+00:00 2026-05-13T15:09:34+00:00

We have a well-defined problem that points to a problem with Microsoft’s JDBC 2.0

  • 0

We have a well-defined problem that points to a problem with Microsoft’s JDBC 2.0 driver for JDK 1.6 (“sqljdbc4.jar”).

I may be wrong. I’ve been wrong before. I wanted to see if I’m missing anything. any insights? Anyone seen this before?

Usecase:

  • use ant “sql” task to run a simple sql query. All queries fail
  • jdbc driver throws an exception when connecting: “The server version is not supported. The target server must be SQL Server 2000 or later.” (stack trace excerpt below)
  • This works fine on sql server versions 2000 and 2005

Data:

  • The only ‘players’ here are a) ant and b) the jdbc drivers. No custom code.
  • we are using the 2.0 driver, i.e. from this file sqljdbc_2.0.1803.100_enu.tar.gz
  • we are using the ‘sqljdbc4.jar’ version, i.e. the version required for JDK6. Md5sum is: 249734b9b7dafaccd92de99eee95d7d6
  • Sql server’s properties are as follows: product version:10.0.2531.0
  • Productlevel: SP1
  • Edition: Enterprise Edition
  • We’re using a jdbc url that looks like this: “jdbc:sqlserver://prodsql2;” (i.e. no extra properties passed at the end)

Stack Trace:

com.microsoft.sqlserver.jdbc.SQLServerException: The server version is not supported. The target server must be SQL Server 2000 or later.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
at com.microsoft.sqlserver.jdbc.DBComms.Prelogin(Unknown Source)
at com.microsoft.sqlserver.jdbc.DBComms.<init>(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
at org.apache.tools.ant.taskdefs.JDBCTask.getConnection(JDBCTask.java:31
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T15:09:34+00:00Added an answer on May 13, 2026 at 3:09 pm

    File under “D” for “D’oh!!!”

    Turns out someone had a while ago checked in sqljdbc.jar to $ANT_HOME/lib

    We updated sqljdbc.jar in our application lib directories and pointed the sql task explicitly to that library.

    < sql classpath='jdbc.classpath' .... />
    

    Ant in fact ignores the classpath setting task and loads the class from $ANT_HOME/lib if it finds it there.

    This log message threw me off. It suggested that ant in fact looked “in the place I specified”. In fact it looked in ANT_HOME/lib.

    Loading com.microsoft.sqlserver.jdbc.SQLServerDriver using AntClassLoader with classpath c:\projects\devtools\mssql_jdbc\sqljdbc_2.0.1803.100\sqljdbc_2.0\enu\sqljdbc4.jar
    

    Sorry.

    bill

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 378k
  • Answers 378k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Cross site protection. You'll need to use jsonp. May 14, 2026 at 9:14 pm
  • Editorial Team
    Editorial Team added an answer Private Inner classes are written when you do not want… May 14, 2026 at 9:14 pm
  • Editorial Team
    Editorial Team added an answer // get a cross-browser function for adding events var on… May 14, 2026 at 9:14 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.