我用下面方法:
          CString m_strTime;
          m_strTime=CTime::GetCurrentTime().Format("%Y.%m.%d %H:%M:%S");
          
             ................................           m_pRecordset->PutCollect("time1", _variant_t(m_strTime));
          怎么会出错?运行不成功。
但是用   insert into statetable (time1) values (\'"+m_strTime+"\')  执行就能插入时间
        高手指教PutCollect哪里出错了?我想用PutCollect方法。