javaÁ¬½Ósqlserver2005Êý¾Ý¿âÐĵÃÌå»á
sqlserverÊý¾Ý¿â£ºjavaÁ¬½Ósqlserver2005Êý¾Ý¿âÐĵÃÌå»á
Ê×ÏȵÃÏÂÔØÇý¶¯³ÌÐòµ½Î¢ÈíÍøÕ¾ÏÂÔØMicrosoft SQL Server 2005 JDBC Driver 1.2¡¡¡¡½âѹMicrosoft SQL Server 2005 jdbc driver1.2.exe
µÃµ½sqljdbc.jar£¬ÓõÃʱºòÖ±½Ó¼Óµ½classpathÖÐÈ¥.
¡¡ÉèÖÃSQL Server·þÎñÆ÷
·ÀÖ¹³öÏÖ
com.microsoft.sqlserver.jdbc.SQLServerException: µ½Ö÷»ú µÄ TCP/IP Á¬½Óʧ°Ü¡£ java.net.ConnectException: Connection refused: connect
at com.microsoft.sqlserver.jdbc.SQLServerException.makefromDriverError(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at Dao.GetConnection.getCon(GetConnection.java:11)
at Dao.GetNotes.getAllNotes(GetNotes.java:13)
at Servlets.GetFull.doGet(GetFull.java:49)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
ÎÒʹÓõÄÊÇSQL Server 2005±ê×¼°æSP2£¬ÕâЩ¶¼Ä¬Èϼ´¿É£¬Ò»°ã²»ÓÃÅäÖá£Èç¹ûÐèÒªÅäÖö˿ÚÇë¿´ÏÂÃæ¡£
¡¡¡¡1¡¢“¿ªÊ¼”→“³ÌÐò&rdqu
Ïà¹ØÎĵµ£º
Ôڳɹ¦ÊµÏÖJavaµ÷ÓÃC++Ö®ºó£¬½ÓÏÂÀ´Ïëµ½ÄÜ·ñͨ¹ýJNAʵÏÖJavaµ÷ÓÃFortran£¬½ñÌìÊÔÑéÁËһϣ¬»¹ÊDZȽÏÈÝÒ׵ġ£
ÍøÉÏÓÐÒ»¸öJavaµ÷ÓÃF95µÄÀý×Ó£¬µ«ÊÇÎÒ¿¼ÂDz»½öҪʵÏÖF95µÄµ÷Ó㬻¹ÒªÊµÏÖF77µÄµ÷Óã¬ËùÒÔ·ÑÁËһЩÖÜÕÛ¡£
ÎÊÌâµÄ¹Ø¼üÔÚÓÚF77Ϊ¹ý³ÌÃû×Ô¶¯Ìí¼ÓÁËÒ»¸öβ²¿µÄÏ»®Ïߣ¬ËùÒÔsub1Õâ¸ö¹ý³Ì£¬µ½JavaÒ»¶Ë£¬¾Í±ä³ÉÁËsub1_£¬ ......
»ñÈ¡java×ÊÔ´µÄ·½·¨
ÔÚ¿ª·¢java³ÌÐòµÄ¹ý³ÌÖУ¬ÎÒÃǾ³£Òª×öµÄÒ»¼þʾÍÊÇ»ñÈ¡×ÊÔ´¡£ÄÇôʲôÊÇ×ÊÔ´ÄØ£¿Ëµ°×ÁË£¬ÔÚ¼ÆËã»úÀïÄǾÍÊÇÒ»¶ÑÊý¾Ý¡£Ö»ÊÇÕâ¶ÑÊý¾Ý¶ÔÎÒÃǵÄjava³ÌÐòÓжàÖÖ±íÏÖÐÎʽ£¬Ò»°ãÀ´ËµÓÐFile£¬URL£¬InputStreamµÈµÈ¡£¶øµ¥¾ÍÎļþÕâÒ»Ïî¾ÍÓкܶàÖÖ£ºÅäÖÃÎļþ£¬javaÀàÎļþ£ ......
Ubuntu/debian ¸ü¸ÄĬÈÏJava»·¾³
ÎҵĵçÄÔÀï°²×°ÁËÁ½¸ö°æ±¾µÄJava£¬Ò»¸öÊÇjava-6-sun£¬»¹ÓÐÒ»¸öÊÇjava-gcj
gcjÊÇÔÚJVM·Ç³£»ºÂýµÄʱºòµ®ÉúµÄ£¬Ëû¿ÉÒÔ°ÑJava´úÂë±àÒë³É±¾µØ´úÂë £¬¹ØÓÚgcjÔÝÇÒ˵Õâô¶à£¬»Øµ½Ö÷Ìâ¡£
ÐÞ¸ÄĬÈÏjava»·¾³Óõ½ÃüÁîupdate-java-alternatives
1¡¢Ê¹ÓÃupdate-java-alternatives -l²é¿´Ä¿Ç°ÒѾ°²×° ......
´«ÖDz¥¿ÍJAVAÅàѵ2010-5-25
×î½ü×Ô¼ºµÄѹÁ¦Ì«¶àÁË£¬ËäÈ»ÏÖÔÚÀë±ÏÒµÖ»ÓÐÒ»¸öÔÂÖ®¾ÃÁË£¬µ«ÊÇÏÖÔÚ×Ô¼º¶ÔÕâ¸öÏîÄ¿µÄÀí½âÈ´ÊÇÄÇôµÄµÍ¼¶£¬µ±Ã¿¸öÈËÃæÁÙÕâÑùµÄʱºòÊDz»ÊǶ¼»áºÍÎÒÒ»ÑùÓÐÕâÑùµÄ¹ËÂÇ£¬µ«ÊÇÊÇÈ˶¼ÓÖÖªµÀ£¬Ö»ÓÐͨ¹ýŬÁ¦ÈÃ×Ô¼ºµÄʵÁ¦µÃµ½Ôö¼Ó£¬²Å»áÈÃ×Ô¼ºÐÄ̤ʵһµã£¬Ë½ÐÎÒÊÇÒ» ......
±¾ÎÄת×Ô£ºhttp://blog.csdn.net/jinjazz/archive/2008/07/14/2650506.aspx
½«oledb¶ÁÈ¡µÄexcelÊý¾Ý¿ìËÙ²åÈëµÄsqlserverÖУ¬ºÜ¶àÈËͨ¹ýÑ»·À´Æ´½Ósql£¬ÕâÑù×ö²»µ«ÈÝÒ׳ö´í¶øÇÒЧÂʵÍÏ£¬×îºÃµÄ°ì·¨ÊÇʹÓÃbcp£¬Ò²¾ÍÊÇSystem.Data.SqlClient.SqlBulkCopy ÀàÀ´ÊµÏÖ¡£²»µ«Ëٶȿ죬¶øÇÒ´úÂë¼òµ¥£¬ÏÂÃæ²âÊÔ´ú ......