Shr*_*hav 0 java sql-server-2008
我正在尝试使用java连接字符串连接sql server 2008,但我收到以下错误
jdbc:sqlserver://127.0.0.1:1434; DatabaseNameconnect?autoReconnect = true com.microsoft.sqlserver.jdbc.SQLServerException:不支持服务器版本.目标服务器必须是SQL Server 2000或更高版本.com.microsoft.sqlserver.jdbc.SQLServerException:不支持服务器版本.目标服务器必须是SQL Server 2000或更高版本.com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)at com.microsoft.sqlserver.jdbc.DBComms.Prelogin(Unknown Source)at com.microsoft.sqlserver.jdbc.DBComms.(Unknown Source)at com. java.sql.DriverManager上java.sql.DriverManager.getConnection(DriverManager.java:582)的com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(未知来源)中的microsoft.sqlserver.jdbc.SQLServerConnection.connect(未知来源) .getConnection(DriverManager.java:185)位于com.dnb.discovery.connection.ConnectionBean.makeMsSqlConnection(ConnectionBean.java:56)com.dnb.discovery.factory.MssqlDAOFactory.(MssqlDAOFactory.java:18)com.dnb .discovery.dao.mssqldao.MssqlCompanyDAO.(MssqlCompanyDAO.java:8)com.dnb.discovery.relevance.Relevance.(Relevance:26)at com.dnb.discovery.dao.SolrDAO.readDataFromSolr(SolrDAO.java) :189)at sun.dreflect.NativeMethodAccessorImpl.invoke0(Nat)的com.dnb.discovery.searchservice.SearchService.buyerTextSearchAnonymous(SearchService.java:124)ive方法)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.xml.internal.ws.api.server.InstanceResolver $ 1.invoke(InstanceResolver.java:210)at com.sun.xml.internal.ws.server.InvokerTube $ 2.invoke(InvokerTube.java:132) at com.sun.xml.internal.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:241)at com.sun.xml.internal.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:74) at com.sun.xml.internal.ws.api.pipe.Fiber .__ doRun(Fiber.java:581)at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:540) at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:525)at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:422) at com.sun.xml.internal.ws.server.WSEndpointImpl $ 2.process(WSEndpointImpl.java:226)at com.sun.xml.internal.ws.transport.http.HttpAdapter $ HttpTool kit.handle(HttpAdapter.java:375),位于com.sun.xml.internal.ws.transport.http的com.sun.xml.internal.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:175).位于com.sun.net.httpserver.Filter $的com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handle(WSHttpHandler.java:77)上的server.WSHttpHandler.handleExchange(WSHttpHandler.java:100)在sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:65)的com.sun.net.httpserver.Filter $ Chain.doFilter(Filter.java:68)sun.doFilter(Filter.java:65) .net.httpserver.ServerImpl $ Exchange $ LinkHandler.handle(ServerImpl.java:555)at com.sun.net.httpserver.Filter $ Chain.doFilter(Filter.java:65)at sun.net.httpserver.ServerImpl $ Exchange .run(ServerImpl.java:527)at java.util.concurrent.ThreadPoolExecutor $ Worker.runTask(ThreadPoolExecutor.java:886)at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:908)at java. lang.Thread.run(Thread.java:619)
我正在使用以下jar连接
sqljdbc-2005-1.0.jar
请帮忙
您正在使用SQL Server 2005 JDBC驱动程序,但与SQL Server 2008交谈.虽然我希望这可以工作,但我怀疑最好的方法可能是更新JDBC驱动程序:
| 归档时间: |
|
| 查看次数: |
3384 次 |
| 最近记录: |