Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File Is In Use Error
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01024915
Message ID:
01024922
Vues:
24
I didn't know that. Thanks


>DELETE FOR locks a table header for duration of the command. If somebody else has the header locked already for INSERT INTO, DELETE FOR, UPDATE FOR, e.t.c., than the error will be generated. To avoid the header lock you can use
>  SELECT TempItems
>  SCAN FOR ProcBatch = .sProcBatchId
>    DELETE
>  ENDSCAN
>* OR
>  DELETE FROM TempItems WHERE ProcBatch = .sProcBatchId
>
>
>>User's a randmonly reporting a 'File is in use by another user' error
>>on the TempItems line. I have no idea why.
>>
>>
>>PROTECTED PROCEDURE _DeleteTempRecs() AS VOID
>>	
>>  WITH This
>>
>>  SELECT TempHead
>>  DELETE FOR ProcBatch = .sProcBatchId
>>			
>>  SELECT TempItems
>>  DELETE FOR ProcBatch = .sProcBatchId
>>
>>  SELECT TempDet
>>  DELETE FOR ProcBatch = .sProcBatchId
>>		
>>    ENDWITH
>>	
>>ENDPROC
>>
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform