Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extra memo
Message
De
28/02/2008 12:32:05
 
 
À
28/02/2008 09:30:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01297347
Message ID:
01297463
Vues:
12
>Hi
>I got a project that done by other programer (unaviliable now).
>
>The database is very huge.
>
>I started to explore it and I seen the biggest file size is .fpt - memo.
>I went inside and I found that the maximum len is 67 (almost 80% len is 11), in addition, this is not sorce for edit box, it's only log field that base on other table list with few options and the maximum lenght could be 67.
>
>I prefere not to change the field type and my question is if there is a way to short the size (I remmenber something about SET BLOCKSIZE but I never used with this).
>
>In addition, I look for other tips/tools to help me shorting the database (it's more than 3GB after 4 years use).

According to the numbers you cited I guesstimate about 60 * 10**7 records, a fpt nearly 2 gig. If the dbf size is still below 1 gig, you could select sql [all dbf_flds,] Padr(left(MemoName, 10), 10) as Leftmemo, cast (subst(MemoName, 11) as M) as MemoName into a new table.
Should snip out slightly less than reccount()*10 bytes from FPT. Read in as Alltrim(Leftmemo) + MemoName and you are set.

HTH

thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform