Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pessimistic buffering
Message
From
21/02/2002 06:22:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00622560
Message ID:
00623041
Views:
30
>3) Wrap the TableUpdate() in a BEGIN TRANSACTION/ROLLBACK so that you do the SELECT statement and then roll back your changes. I don't like this method, but there isn't any reason I know of not to use it.

>
>
>* Pseudo-code -- do not use unmodified.
>* Append records
>BEGIN TRANSACTION
>TABLEUPDATE(2)
>SELECT * FROM myTable
>ROLLBACK
>
Thanks: this is very interesting alternative.

I can imagine one good reason to use it: I don't want to save yet.

And one good reason not to use it: I understand that transactions use implicit record locking.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform