2013年11月8日

ERROR:通过端口 1433 连接到主机 localhost 的 TCP/IP 连接失败。错误:“Connection refused: connect。请验证连接属性,并检查 SQL Server 的实例正在主机上运行,且在此端口接受 TCP/IP 连接,还要确保防火墙没有阻止到此端口的 TCP

摘要: 本文转载于:file:///C:/Users/Administrator/Desktop/[%E8%BD%AC%E8%BD%BD]%E9%80%9A%E8%BF%87%E7%AB%AF%E5%8F%A3%201433%20%E8%BF%9E%E6%8E%A5%E5%88%B0%E4%B8%BB%E6%9C%BA%20localhost%20%E7%9A%84%20TCP%20IP%20%E8%BF%9E%E6%8E%A5%E5%A4%B1%E8%B4%A5%E3%80%82%E9%94%99%E8%AF%AF%20%E2%80%9CConnection%20refused%20%20conne 阅读全文

posted @ 2013-11-08 18:25 nigel_jw 阅读(3465) 评论(0) 推荐(0) 编辑

JAVA:对数据库的一系列操作代码

摘要: 插入数据import java.sql.*;/** * @version 2012-02-22 * @author */public class InsertDemo { public static void main(String[] args) throws SQLException { Connection conn = null; Statement stmt = null; String JDriver="com.microsoft.sqlserver.jdbc.SQLServerDriver";//SQL鏁版嵁搴撳紩鎿� ... 阅读全文

posted @ 2013-11-08 18:20 nigel_jw 阅读(232) 评论(0) 推荐(1) 编辑

JAVA与 SQL server2008进行连接

摘要: import java.sql.*;public class Test { public static void main(String [] args) throws SQLException { String driverName="com.microsoft.sqlserver.jdbc.SQLServerDriver"; String url="jdbc:sqlserver://localhost:1433;databaseName=test"; String userName="sa"; //"MVF7JLVWLQ 阅读全文

posted @ 2013-11-08 18:15 nigel_jw 阅读(963) 评论(0) 推荐(0) 编辑

怎么样将数据库的表在Java中界面中显示出来

摘要: 原文地址:http://wenku.baidu.com/link?url=39cZltge1d1HbmnF0wCO9a1M7Z4rl5urIECtGmy5D6t058KN98k10cw1bHHp6emKOel3ngghR2MBzmVee5AchUoTfyYgNGIoAPRPlYLPrwCimport javax.swing.*;import javax.swing.table.JTableHeader;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.sql.*;public c 阅读全文

posted @ 2013-11-08 18:13 nigel_jw 阅读(5170) 评论(0) 推荐(1) 编辑

导航