Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transactions
Message
From
30/03/2001 11:01:03
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00490206
Message ID:
00490336
Views:
11
>It is my understanding and correct me if I'm not correct that rollback only rollback any updating you have done within the begin transaction end transaction. Say for instance you have two table called subscriber and money. Before you begin the transaction you append a record to the subscriber and money table. The subscriber table has a stored procedure that requires that you enter a last name. User hasn't done that so when begin the begin end transaction with a tableupdate to subscriber table it fails. You call rollback but it doesn't rollback since you haven't included the append in the begin end transaction sequence. So what I do is call rollback and then call tablerevert for each of the tables. From my limited knowledge I tried to keep the updating outside of the begin end transaction since I knew it lock the entire table and want to keep the processing short within the begin end transaction. Perhaps I was wrong and should have included my appends within the transaction.


Umm.. no, the TABLEUPDATE will handle the appends for you.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform