连接远程SQL SERVER 后如何修改删除数据,浏览可以但是为什么不能删除和修改

解决方案 »

  1.   

    删除
    cn.execute "delete from table1 where ..."
    修改
    cn.execute "update table1 where ...."
      

  2.   

    删除
    cn.execute "delete from table1 where ..."
    修改
    cn.execute "update table1 where ...."
      

  3.   

    adodc1.recordset.addnew
    adodc1.recordset.update
    adodc1.recordset.delete
      

  4.   

    我已经解决
    rs.CursorType = adOpenStaticrs.LockType = adLockBatchOptimisticrs.Open "Select * from agency ", cnMsgBox rs("agtopic")
    rs.Delete
    rs.UpdateBatchrs.Close就可以了
      

  5.   

    先设置
    rs.CursorType = adOpenStaticrs.LockType = adLockBatchOptimistic