Я использую Microsoft ODBC для Oracle и обрабатываю распределенную транзакцию с помощью TransactionScope, но код выдает ошибку: опция ERROR [HYC00] [ORACLE] [ODBC] не реализована, мой код находится на vb.net.*
Вот мой код:
sub Main()
dim strConn1 as string = "Driver={Microsoft ODBC for Oracle};Server=server1;UID=user1;PWD=pwd1;"
dim strConn2 as string = "Driver={Microsoft ODBC for Oracle};Server=server2;UID=user2;PWD=pwd2;"
try
using scope as new TransactionScope()
using conn1 as new OdbcConnection(strConn1)
conn1.Open() 'always throws error here
dim command1 as new OdbcCommand(strSQL1)
command1.ExecuteNonQuery()
using conn2 as new OdbcConnection(strConn2)
dim command2 as new OdbcCommand(strSQL2)
command2.ExecuteNonQuery()
end using
end using
scope.Complete()
end using
catch
end try
end sub
, кто может сказать мне, почему, спасибо.