摘要: string strConn = "Data Source=.;Initial Catalog=PB_NewsSystem;Integrated Security=true";//创建数据库连接对象 SqlConnection conn = new SqlConnection(strConn);//建立SqlConnection数据库和应用的桥梁 try { conn.Open();//打开数据库 SqlCommand cmd = new SqlCommand();////执行sql语句 和connect... 阅读全文
posted @ 2013-11-28 10:16 914556495 阅读(296) 评论(0) 推荐(0)