本帖最后由 chl27 于 2012-11-26 11:17:21 编辑

解决方案 »

  1.   

    我会用command的那个直接用sql语句的Insert这个肯定没问题的
      

  2.   

    加 try catch看看
    try
    {
    m_pRs->AddNew();
            m_pRs->PutCollect("gkh", _variant_t(m.mygkh));
            m_pRs->PutCollect("timu",_variant_t(m.mytm));
             m_pRs->Update();
    }
    catch
    {
      TRACE(_T("%u,%x,%s"),e.Error(),e.ErrorMessage(),(LPTSTR)e.Description());
    }
      

  3.   

    用command的那个 插入成功了,但是用update 报错。外面有一个try catch
      

  4.   

    插入都成功了,不必update了吧,即使是也在命令里用sql语句试试