当前位置: 代码迷 >> Java相关 >> 求助:sql数据库的问题!
  详细解决方案

求助:sql数据库的问题!

热度:207   发布时间:2005-07-07 19:44:00.0
求助:sql数据库的问题!

我已经将数据库驱动放在了classpath中了,但是怎么还出现下面的错误: java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error establishing sock et. 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 Sou rce) at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown S ource) at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source) at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at CreatTableTest.getConnection(CreatTableTest.java:103) at CreatTableTest.main(CreatTableTest.java:28) Exception in thread "main" java.lang.NullPointerException at CreatTableTest.createTable(CreatTableTest.java:41) at CreatTableTest.main(CreatTableTest.java:29) 那位高手能帮小弟解决一下这个难题!谢谢!

搜索更多相关的解决方案: 数据库  sql  

----------------解决方案--------------------------------------------------------
  相关解决方案