摘要: http://www.cnblogs.com/winner/archive/2008/01/09/1032651.htmlusingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Web.UI.HtmlControls;usingSystem.Data.SqlC 阅读全文
posted @ 2012-03-12 22:21 氺〤魚Oo。 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 主要代码如下://连接字符串string strConn="user id=sa;password=123456;initial catalog=MyDb;Server=192.168.47.144,1433;Connect Timeout=10"; //创建连接对象 SqlConnection objConn = new SqlConnection(strConn); try { //开始连接数据库 objConn.Open(); //执行SQL语句 string sql = "SELECT * FROM tb_People"; SqlCommand 阅读全文
posted @ 2012-03-12 20:07 氺〤魚Oo。 阅读(278) 评论(0) 推荐(0) 编辑