Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to handle Transactions in Paradox database?

0
Posted

How to handle Transactions in Paradox database?

0

Hi, I am quite new to Paradox database. I am trying to handle database operations like insert and delete as a transaction using C#. But I am getting an exception saying “ERROR [HYC00] [Microsoft][ODBC Paradox Driver]Optional feature not implemented”. So I am wondering whether Paradox supports transactions. Please help me. The following is the code snippet. public void Save() { cn.Open(); OdbcTransaction objTransaction = cn.BeginTransaction(); try { OdbcCommand cmd = new OdbcCommand(); cmd.Connection = cn; cmd.Transaction = objTransaction; //Insert query – Table 1 //Insert query – Table 2 objTransaction.Commit(); } catch (Exception ex_SaveFunctionDiagram) { objTransaction.Rollback(); MessageBox.Show(ex.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123