当前位置: 代码迷 >> Eclipse >> 小弟我在eclipse上做了个项目与SQLSERVER2000相连。现在老报连不上。不知是什么有关问题
  详细解决方案

小弟我在eclipse上做了个项目与SQLSERVER2000相连。现在老报连不上。不知是什么有关问题

热度:69   发布时间:2016-04-23 15:04:04.0
我在eclipse上做了个项目与SQLSERVER2000相连。现在老报连不上。不知是什么问题?
at   com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:354)
java.sql.SQLException:   [Microsoft][SQLServer   2000   Driver   for   JDBC]Error   establishing   socket.
at   com.microsoft.jdbc.base.BaseExceptions.createException(Unknown   Source)
at   com.microsoft.jdbc.base.BaseExceptions.getException(Unknown   Source)
at   com.microsoft.jdbc.base.BaseExceptions.getException(Unknown   Source)
at   com.microsoft.jdbc.sqlserver.tds.TDSConnection. <init> (Unknown   Source)
at   com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown   Source)
at   com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown   Source)
at   com.microsoft.jdbc.base.BaseConnection.open(Unknown   Source)
at   com.microsoft.jdbc.base.BaseDriver.connect(Unknown   Source)
at   com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:68)
at   com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:87)
at   com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.acquireResource(C3P0PooledConnectionPool.java:83)
at   com.mchange.v2.resourcepool.BasicResourcePool.assimilateResource(BasicResourcePool.java:884)
at   com.mchange.v2.resourcepool.BasicResourcePool.acquireUntil(BasicResourcePool.java:601)
at   com.mchange.v2.resourcepool.BasicResourcePool.access$400(BasicResourcePool.java:31)
at   com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1079)
at   com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:354)

------解决方案--------------------
把连接数据库的代码贴出来先看看
------解决方案--------------------
1.检查你的MICROSOFT SQLSERVER驱动程序是否已经加载到项目中.
2.使用桥接连接SQLSERVER是否配置的数据源.

------解决方案--------------------
SQLServer要打SP3补丁的,否则连不上
------解决方案--------------------
现在老报连不上。不知是什么问题?
================================
要是以前是可以连上的话。现在重启一下服务就应该可以了
  相关解决方案