Error solving SQLException: [Microsoft] [SQLServer2000Driverfor

Source: Internet
Author: User
Msbase.tar mssqlserver. jarmsutil. the code for storing jar in the LIB directory is as follows: Class. forName (com. microsoft. jdbc. sqlserver. SQLServerDriver ). newInstance (); Connectionconjava. SQL. driverManager. getConnection (jdbc: microsoft: sqlserver: 127.0.0.1: 1433; Databas

Msbase.tar mssqlserver. jar msutil. the code for storing jar in the LIB directory is as follows: Class. forName (com. microsoft. jdbc. sqlserver. SQLServerDriver ). newInstance (); Connection con = java. SQL. driverManager. getConnection (jdbc: microsoft: sqlserver: // 127.0.0.1: 1433; Databas

Msbase.tar mssqlserver. jar msutil. jar is stored in the LIB directory.

The Code is as follows: Class. forName ("com. microsoft. jdbc. sqlserver. SQLServerDriver "). newInstance (); Connection con = java. SQL. driverManager. getConnection ("jdbc: microsoft: sqlserver: // 127.0.0.1: 1433; DatabaseName = dblink", "sa", ""); Statement stmt = con. createStatement (); ResultSet rst1_stmt.exe cuteQuery ("select * from FYSH ;");

AppearsError: Serious: Servlet. service () for servlet jsp threw exceptionjava. SQL. SQLException: [Microsoft] [SQLServer 2000 Driver for JDBC] Connection refused: connect at com. microsoft. jdbc. base. baseExceptions. createException (Unknown Source) at com. microsoft. jdbc. base. baseExceptions. getException (Unknown Source) at com. microsoft. jdbc. sqlserver. tds. TDSConnection. (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 java. SQL. driverManager. getConnection (Unknown Source) at java. SQL. driverManager. getConnection (Unknown Source) at org. apache. jsp. testMssql_jsp. _ jspService (testMssql_jsp.java: 71) at org. apache. jasper. runtime. httpJspBase. service (HttpJspBase. java: 98) at javax. servlet. http. httpServlet. service (HttpServlet. java: 803) at org. apache. jasper. servlet. jspServletWrapper. service (JspServletWrapper. java: 328) at org. apache. jasper. servlet. jspServlet. serviceJspFile (JspServlet. java: 315) at org. apache. jasper. servlet. jspServlet. service (JspServlet. java: 265) at javax. servlet. http. httpServlet. service (HttpServlet. java: 803) at org. apache. catalina. core. applicationFilterChain. internalDoFilter (ApplicationFilterChain. java: 269) at org. apache. catalina. core. applicationFilterChain. doFilter (ApplicationFilterChain. java: 188) at org. apache. catalina. core. standardWrapperValve. invoke (StandardWrapperValve. java: 210) at org. apache. catalina. core. standardContextValve. invoke (StandardContextValve. java: 174) at org. apache. catalina. core. standardHostValve. invoke (StandardHostValve. java: 127) at org. apache. catalina. valves. errorReportValve. invoke (ErrorReportValve. java: 117) at org. apache. catalina. core. standardEngineValve. invoke (StandardEngineValve. java: 108) at org. apache. catalina. connector. coyoteAdapter. service (CoyoteAdapter. java: 151) at org. apache. coyote. http11.Http11Processor. process (Http11Processor. java: 870) at org. apache. coyote. http11.Http11BaseProtocol $ Http11ConnectionHandler. processConnection (Http11BaseProtocol. java: 665) at org.apache.tomcat.util.net. poolTcpEndpoint. processSocket (PoolTcpEndpoint. java: 528) at org.apache.tomcat.util.net. leaderFollowerWorkerThread. runIt (LeaderFollowerWorkerThread. java: 81) at org. apache. tomcat. util. threads. threadPool $ ControlRunnable. run (ThreadPool. java: 685) at java. lang. thread. run (Unknown Source)

Later I found the installation of SQL Server SP4 on the internet can I installed found or can not use dizzy results look at the installation of SP4 just decompress C:/SQL2KSP4 SQL2000.MSDE-KB884525-SP4-x86-CHS.EXE a low-levelErrorLessons learned later

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.