Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File Locks with Insert-SQL
Message
From
03/04/1999 00:50:18
 
 
To
02/04/1999 17:07:42
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00204816
Message ID:
00204890
Views:
25
>Has anyone had any problems with file locking or file in use by another when using INSERT INTO. I have been getting this in a dos 2.6 app. Any Ideas
>

Any time you issue a command that adds a record to a table, the header of that table is locked for a short time while VFP updates the record count in the header. This should generally not be a problem, especially with SQL INSERT because the amount of time that the header is locked is very small. Are you getting the error when you use the INSERT, or is the SQL INSERT causing the error in other processes?

Things to watch for:

REPLACE FOR/ALL
DELETE FOR/ALL

these commands lock the table header for the duration of their execution, which can often cause contention.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform