摘要:
//生成Connection对象用于打开连接SqlConnection conn = new SqlConnection(); //连接语句 conn.ConnectionString = "Server=.;User ID=sa;Password=sx;Database=数据库名;"; //连接打开 conn.Open(); //数据库适配器对象需要两个参数、 //参数1:/查询语句 //参数2:SqlConnection对象 SqlDataAdapter da = new SqlDataAdapter("select * from 表名", conn 阅读全文
posted @ 2012-04-18 23:59
程序员-小菜
阅读(555)
评论(0)
推荐(0)

浙公网安备 33010602011771号