Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Failed delete won't release lock
Message
From
25/06/2003 20:14:00
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Failed delete won't release lock
Miscellaneous
Thread ID:
00804051
Message ID:
00804051
Views:
50
VFP8.0
database Sybase Adaptive Server Anywhere 8.02.
If I am using automatic transactions and issue a delete that will fail because of foreign key constraints, the row stays locked and the only way to unlock the row is to disconnect from the database. Using manual transactions does not work because I don’t get the error from the database. The only way I can get this to work is to add “begin transaction;” to the delete and then issue a rollback if it fails. Is this the proper way to handle this or am I missing something?

UPDATE
I found the problem with manual transactions so that is another option.

Thanks
Reply
Map
View

Click here to load this message in the networking platform