摘要: public SqlConnection Connection() //连接并返回连接对象 { SqlConnection conn = new SqlConnection(" Data Source=localhost;Initial Catalog=db_NetBar;User ID=sa;Password=123456"); return conn; } public SqlCommand Command(string sql, SqlConnection conn) //返回一个SqlCommand对象 { SqlCommand cmd = new SqlComma 阅读全文
posted @ 2012-09-17 16:51 华强国邦 阅读(485) 评论(0) 推荐(0)