Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table moving in DBC
Message
 
À
26/05/1998 09:04:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00101853
Message ID:
00101932
Vues:
18
>You could use Vfp\Tools\GenDbc \GenDbc and then copy and paste
>the related code from the PRG that GenDbc creates. Also, I believe
>Stonefield's Data ToolKit has a copy option.
>-myron kirby-
>===============================
>>Hi All!
>>
>>I want to move a table from a DBC to another bu I don't want to lose the information what are available only for the database container (primary index, long field names etc.)
>>How can I do?
>>
>>Thanks
>>
>>IVAN

You can use COPY TO .... DATABASE ..... WITH CDX
Sample:
COPY TO C:\NewDir\NewTable.dbf DATABASE C:\NewDir\new.dbc WITH CDX

It will copy all long filenames and indexes. Note that your PRIMARY index will be converted to CANDIDATE.
It will not copy other fields info though (default value, rules etc.), but at least you don't need to recreate table and indexes.

HTH,

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform