Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pack issue on large DBF
Message
De
17/03/2015 20:26:56
 
 
À
17/03/2015 16:45:05
Denis Filer
University of Oxford
Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01616914
Message ID:
01616921
Vues:
65
>We have a DBF table with 3.6 million records, about 1.6 GB. The FPT is about 1 GB. The file unexpectedly would not pack. We were very concerned the file was corrupted. However, seems not corrupted and by splitting to two files 50% each, packing and merging, the entire file now seems to pack OK. Is there any logic in this?
>Thanks if any one has a clue.
>(Incidently, wonderful VFP runs extremely well at this size. One of the table, smaller is GB has 5 millions records.)

Have you checked if there might be an antivirus involved? I have occasionally run into situations where code such as:
USE sometable
COPY TO someotherfilename
USE someotherfilename
would fail at the second USE statement, but if I'd insert a WAIT WINDOW, some form of I/O, or a DOVENT in between the COPY and subsequent USE statement
USE sometable
COPY TO someotherfilename
DOEVENT
USE someotherfilename
the problem would go away. I would guess that the inserted statement causes the FoxPro program to release its timeslice, thus giving a greater chance for the antivirus to complete the scan before control reverts to the FoxPro program.

I'd seen that in situations such as this, PACK is likely to fail -- because of the implicit file copy, file close, file erase, file rename, then file re-open is being interrupted by the antivirus (which probably opens the file exclusively). At least that's my interpretation, given the typical symptoms I'd seen -- where the DBF file ends up missing, but there is a file in the same directory with a random-looking filename that appears to the missing file.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform