在执行到“★”该行时提示:
“已有打开的与此连接相关联的 DataReader,必须首先将它关闭”

解决方案 »

  1.   

    you cannot have two datareaders running at the same time, either use another connection or close the current reader and open anotherby the way, suggest you use a query like
    select * from table1; select * from table2then use datareader's NextResult method to retrieve other recordsets
      

  2.   

    定义另外的cmd名字,提示的错误信息相同的!
      

  3.   

    “ saucer(思归, MS .NET MVP)”你的方法,无法实现我的需求,不过挺好的,以后还的向你多多学习!