标签:ar 使用 sp on 数据 bs ad new nbsp
string sqlStr="select * from tb_news";
SqlCommand myCmd=new SqlCommand(sqlStr,myConn);
myCmd.CommandType=CommandType.Text;
SqlDataReader myDr=myCmd.ExecuteReader();
过程:
创建连接
打开连接
创建Command对象
执行Command的ExecuteReader方法
将DataReader绑定到数据控件中.
关闭DataReader.
关闭连接
标签:ar 使用 sp on 数据 bs ad new nbsp
原文地址:http://www.cnblogs.com/handsomer/p/4150644.html