【发布时间】:2014-12-22 14:38:02
【问题描述】:
我们最近迁移到 SQL Server 2014,在一台机器上使用 JAVA 5,在另一台机器上使用 JAVA 6(这是一项要求)。当我尝试连接到数据库时,出现以下异常。
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (
com.microsoft.sqlserver.jdbc.SQLServerException:
The server version is not supported.
The target server must be SQL Server 2000 or later.
)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:168)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:508)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:207)
以下是配置:
- 操作系统:Windows 服务器 2012
- SQL 服务器 2014
- JAVA 版本:JDK5u11 和 JDK6u24
- Jar 文件:JDK5 的 sqljdbc.jar 和 JDK6 的 sqljdbc4.jar
【问题讨论】:
-
您使用的是哪个版本的 MS JDBC?它可能太旧了,如果您还没有,请尝试使用
Microsoft SQL Server JDBC Driver 4.1 for SQL Server。
标签: java sql sql-server jdbc sql-server-2014