If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Corel Paradox > How to handle Transactions in Paradox database?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-30-08, 04:47
PrasadNair1977 PrasadNair1977 is offline
Registered User
 
Join Date: May 2008
Posts: 1
How to handle Transactions in Paradox database?

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.Message);
}
}
Reply With Quote
  #2 (permalink)  
Old 05-30-08, 07:19
Steve Green Steve Green is offline
Registered User
 
Join Date: Dec 2007
Posts: 273
I am trying to handle database operations like insert and delete as a transaction using C#.

please post your question on the C+ forum.. this has nothing to do with the paradox table itself, or paradox software..
__________________
--
Steven Green - Myrtle Beach, South Carolina USA

http://www.OasisTradingPost.com

Oasis Trading Post
- Collectibles and Memorabilia
- Vintage Lego Sets and Supplies
Reply With Quote
  #3 (permalink)  
Old 06-07-08, 15:48
Mike Prestwood Mike Prestwood is offline
Registered User
 
Join Date: Jun 2008
Posts: 2
Thumbs down Paradox Tables Don't support transactions, the BDE does.

Adding to this old thread for those lurking...


>>[Microsoft][ODBC Paradox Driver]Optional feature not implemented

This means the ODBC driver you are using does not support transactions.

As a file-based database, Paradox tables themselves don't support transactions. In Paradox for Windows transactions are implemented by the Borland Database Engine (BDE).
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On