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