Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locking records
Message
From
26/03/2002 22:37:56
 
 
To
24/02/2002 08:54:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00624084
Message ID:
00637651
Views:
16
Hello,
a) If you are using processing statements within TRANSACTIONs, locks are automatically applied by VFP on tables.
b) Yes, TRANSACTIONs are better way for updating multiple tables, except that they dont do a deadly embrace.

sanjay.

>>I have a fox stored proc. that does all updates to the tables: Inserts, Updates, Deletes. I send a string to that SP that is converted into a cusror. Then I scan that cusror and do updates. My question is do I need to lock a record which is about to be updated? Is transaction better way to hanlde multiple updates? Please, help.
>>
>>Thanks, Mark
>
>I believe the trigger automatically goes within a transaction.
>
>You can also use buffering and TableUpdate(), to make sure changes can be comitted.
>
>Hilmar.
Sanjay Dhiraj Patel

MCSE, MCDBA

Net2Biz (Thailand)
Previous
Reply
Map
View

Click here to load this message in the networking platform