使用DataReader的NextResult !

     数据库访问的对象DataReader,包括SqlDataReader,OleDbDataReader等有个NextResult方法,返回一个布尔值,true。鼠标指到NextResult代码上显示这些东东:Advances the data reader to the next result , when reading the results of batch Transact-SQL statement . :)下面是个简单的例子。  
看了这篇文章你就不用每条select语句占用一个command了。^_^
posted @ 2006-01-11 21:32  zhanqiangz(闲云野鹤)  阅读(1447)  评论(7编辑  收藏  举报