http://support.microsoft.com/default.aspx?scid=kb;ZH-CN;301248
http://support.microsoft.com/default.aspx?scid=kb;zh-cn;307587

解决方案 »

  1.   

    在update之前要用commandbuilder生成一下命令
      

  2.   

    设置dataAdapter的select insert update delete命令
    可以用commandbuilder生成
    然后调用DataAdapter.Update();就可以了
      

  3.   

    OleDbConnection myConn = new OleDbConnection(myConnection);
        OleDbDataAdapter myDataAdapter = new OleDbDataAdapter();
        myDataAdapter.SelectCommand = new OleDbCommand(mySelectQuery, myConn);
        OleDbCommandBuilder custCB = new OleDbCommandBuilder(myDataAdapter);    myConn.Open();    DataSet custDS = new DataSet();
        myDataAdapter.Fill(custDS);    //code to modify data in dataset here    //Without the OleDbCommandBuilder this line would fail
        myDataAdapter.Update(custDS);    myConn.Close();