簡體   English   中英

連接到sql server 2008企業版時出錯

[英]getting an error while connecting to sql server 2008 enterprise edition

我正在嘗試使用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.DBComms.Prelogin(未知源)在com.microsoft.sqlserver.jdbc.DBComms.Prelogin(未知源)在com.microsoft.sqlserver.jdbc.DBComms.com(com。 microsoft.sqlserver.jdbc.SQLServerConnection.connect(未知源)位於com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(未知源)位於java.sql.DriverManager.getConnection(DriverManager.java:582) com.dnb.discovery.connection.ConnectionBean.makeMsSqlConnection(.com.dnb.discovery.factory.MssqlDAOFactory。(MssqlDAOFactory.java:18)處的.getConnection(DriverManager.java:185) .discovery.dao.mssqldao.MssqlCompanyDAO。(MssqlCompanyDAO.java:8)位於com.dnb.discovery.relevance.Relevance。(Relevance.java:26)位於com.dnb.discovery.dao。 :189),位於com.dnb.discovery.searchservice.SearchService.buyerTextSearchAnonymous(SearchService.java:124),位於sun.reflect.NativeMethodAccessorImpl.invoke0(Nat ive方法),位於sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39),位於java.lang.reflect.Method.invoke(Method.java:597)處,sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)在com.sun.xml.internal.ws.api.server.InstanceResolver $ 1.invoke(InstanceResolver.java:210)在com.sun.xml.internal.ws.server.InvokerTube $ 2.invoke(InvokerTube.java:132)在com.sun.xml.internal.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:241)處com.sun.xml.internal.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:74)在com.sun.xml.internal.ws.api.pipe.Fiber .__ doRun(Fiber.java:581)處com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:540)在com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:525)在com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:422)在com.sun.xml.internal.ws.server.WSEndpointImpl $ 2.process(WSEndpointImpl.java:226)處com.sun.xml.internal.ws.transport.http.HttpAdapter $ HttpTool kit.handle(HttpAdapter.java:375)位於com.sun.xml.internal.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:175)位於com.sun.xml.internal.ws.transport.http。 com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handle(WSHttpHandler.java:77)上的server.WSHttpHandler.handleExchange(WSHttpHandler.java:100)在com.sun.net.httpserver.Filter $在sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:65)在com.sun.net.httpserver.Filter $ Chain.doFilter(Filter.java:68)在Chain.doFilter(Filter.java:65) .net.httpserver.ServerImpl $ Exchange $ LinkHandler.handle(ServerImpl.java:555)位於com.sun.net.httpserver.Filter $ Chain.doFilter(Filter.java:65)位於sun.net.httpserver.ServerImpl $ Exchange Java的.run(ServerImpl.java:527)在java.util.concurrent.ThreadPoolExecutor $ Worker.runTask(ThreadPoolExecutor.java:886)在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:908)在java。 lang.Thread.run(Thread.java:619)

我正在使用以下罐子進行連接

sqljdbc-2005-1.0.jar

請幫忙

您正在使用SQL Server 2005 JDBC驅動程序,但正在與SQL Server 2008通訊。雖然我希望它能起作用,但我懷疑最好的方法可能是更新JDBC驅動程序:

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM