G
Guest
Hi
I trying to use System.Transactions with Oracle database. I'm getting the
"AccessViolationException" exception. I'm using
..Net Framework 2.0 and ASP.Net
Enterprise Library 2.0
Oracle 9.2.0.7
Windows XP Professional
I installed the complete ODAC before trying this. The following is the code
sample:
using (TransactionScope ts = new TransactionScope())
{
Database db1 = DatabaseFactory.CreateDatabase();
DbCommand dbc1 = db1.GetStoredProcCommand("Proc1");
db1.ExecuteNonQuery(dbc1);
Database db2 = DatabaseFactory.CreateDatabase();
DbCommand dbc2 = db2.GetStoredProcCommand("Proc1");
db2.ExecuteNonQuery(dbc2);
ts.Complete()
}
Am I missing anything here? Any help is appreciated.
I trying to use System.Transactions with Oracle database. I'm getting the
"AccessViolationException" exception. I'm using
..Net Framework 2.0 and ASP.Net
Enterprise Library 2.0
Oracle 9.2.0.7
Windows XP Professional
I installed the complete ODAC before trying this. The following is the code
sample:
using (TransactionScope ts = new TransactionScope())
{
Database db1 = DatabaseFactory.CreateDatabase();
DbCommand dbc1 = db1.GetStoredProcCommand("Proc1");
db1.ExecuteNonQuery(dbc1);
Database db2 = DatabaseFactory.CreateDatabase();
DbCommand dbc2 = db2.GetStoredProcCommand("Proc1");
db2.ExecuteNonQuery(dbc2);
ts.Complete()
}
Am I missing anything here? Any help is appreciated.