按照MSDN的说法,DATASET的数据是保存在内存里的,操作完后一起提交。
如果你的数据量大的话,最好做个索引表吧!

解决方案 »

  1.   

    那有没有其它的办法啊如果我只要取20条,不会要我把所有的数据都读出来吧比如我要取第20-40条以前可以用
    Rec.AbsolutePage=??? 来定位现在就算用DataReader
    也要一次次的Read()才能跳过前面的数据有没有什么好的办法呢?
      

  2.   

    try this:
    dataAdapter.Fill(ds, 20, 20, "table"); The Help say this:
    [C#]
    public int Fill(
       DataSet dataSet,
       int startRecord,
       int maxRecords,
       string srcTable
    );