private sub commmand6_click()
sql="insert into [email protected](bm,mc) values('mmmm','ttt')"
OraBeginTrans
connara.execute sql
OraCommitTrans
end sub

解决方案 »

  1.   

    sorry,应该是:
    private sub commmand6_click()
    sql="insert into [email protected](bm,mc) values('mmmm','ttt')"
    connara.BeginTrans
    connara.execute sql
    connara.CommitTrans
    end sub
      

  2.   

    设置你的连接
    CN.CursorLocation = adUseClient
    试试
      

  3.   

    [email protected]最好建立一个同义词,简单点
      

  4.   

    [email protected] 同义词是简单些但是问题还是没有解决。
      

  5.   

    ORA-02041 client database did not begin a transactionCause: An update occurred at a coordinated database without the coordinator beginning a distributed transaction. This may happen if a stored procedure commits and then performs updates, and the stored procedure is invoked remotely. It could also happen if an external transaction monitor violates the XA protocol.Action: If the cause is the former, check that any commit is not followed by an update.