vc下通过ado连接mysql数据库,写数据到数据库表格中的时候发生一下错误:“Operation is not allowed when the object is open”及unknown error
0x800a0e79.感觉这个错误出现的时候很随机,并不是每次操作都出这个错误,
通过调试我也还没有找到什么地方出错。哪位碰到过这种错误,请指点。谢谢

解决方案 »

  1.   

    又出一个至少表面上看是随机的错误:“multi-step OLE DB operation generated error.check each OLE DB status value.if available,no work was done”
    "IDispatch error#3105",数据库真是难搞啊
      

  2.   

    Operation is not allowed when the object is open”
    ----这条语句还有一个可能性,就是你的RECORDSET对象没有被CLOSE就又去OPEN
      

  3.   

    multi-step OLE DB operation generated error.check each OLE DB status value.if available,no work was done这个错误是数据库中表的某些字段不允许更新,或者不允许空,但是你更新它了或者赋给了空值,所以有些时候出错
      

  4.   

    应该不是recordset对象没有被close就又去open的问题,我每次打开recordset时都有关的
    操作。