先试试这个解决方法,如果还不行的话,就贴sql语句出来ORA-01453: SET TRANSACTION must be first statement of transaction Cause: A transaction was not processed properly because the SET TRANSACTION statement was not the first statement. Action: Commit or roll back the current transaction before using the statement SET TRANSACTION.
Dim cn As New OracleConnection(db("XXGZ")) Dim cm As New OracleCommand Dim tr As OracleTransaction cn.Open() Try tr = cn.BeginTransaction(IsolationLevel.ReadCommitted)-----错误行
问singlepine(小山)兄: 应该怎么处理?看不懂
Action: Commit or roll back the current transaction before using the statement SET TRANSACTION.
Dim cm As New OracleCommand
Dim tr As OracleTransaction cn.Open()
Try
tr = cn.BeginTransaction(IsolationLevel.ReadCommitted)-----错误行
应该怎么处理?看不懂
似乎说的很详细了
去掉参数就可以执行,很奇怪,而在别的类中没有这个问题.当A类出现错误时,去执行其它类Bs时,语句一样但不出错.