我正在使用Visual Studio 2010(VB.Net)。我正在使用以下代码抛出此错误:
OdbcConnection不支持并行事务
try
tran = conn.begintransaction(isolationlevel.readcommitted)
cmd1.connection = conn
cmd1.transaction = tran
cmd1.executenonquery()
catch ex as exception
tran.rollback()
endtry
try
cmd2.connection = conn
cmd2.transaction = tran
cmd.executenonquery()
catch ex as exception
tran.rollback()
endtry
tran.commit()
我不明白问题出在哪里?