extern "C" __declspec(dllexport) BOOL Save1()
{
CCommand<CAccessor<CSOEAccessor> > rs;
HRESULT hr;
// CString str = "select * from SOE1";
CDBPropSet propset(DBPROPSET_ROWSET);
propset.AddProperty(DBPROP_IRowsetChange, true);
propset.AddProperty(DBPROP_UPDATABILITY, DBPROPVAL_UP_CHANGE | DBPROPVAL_UP_INSERT | DBPROPVAL_UP_DELETE); CString str = "insert SOE1 (nyxid) values (1)";
hr = rs.Open(g_session, str, &propset);
if(FAILED(hr))
return FALSE;

/* CString t;
while(rs.MoveNext() == S_OK)
{
t.Format("%d", rs.m_nyxid);
AfxMessageBox(t);
}
*/
rs.Close();
return TRUE;
}执行select没问题,执行insert报assert错误, Why?