你首先要确认你的SQL语句有没有错误,如果你用的是SQL Server的话,可以先把这条SQL语句放到Analyzer中执行一下,看一看有没有错误。
  如果SQL语句没有错的话,你再看一下,你是不是对这人数据库有修改的权限,用CanUpdate()函数看一下。
CRecordset::CanUpdate
BOOL CanUpdate( ) const;Return ValueNonzero if the recordset can be updated; otherwise 0.ResCall this member function to determine whether the recordset can be updated. A recordset might be read-only if the underlying data source is read-only or if you specified CRecordset::readOnly in the dwOptions parameter when you opened the recordset.