Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy to .. database fails with error
Message
De
11/06/2012 11:41:36
 
 
À
11/06/2012 10:56:38
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 7
Database:
Visual FoxPro
Divers
Thread ID:
01545790
Message ID:
01545801
Vues:
60
>>>>Hi all,
>>>>
>>>>I am attempting to copy the structure of one table to another. But when I execute the following command I get the error "Object name is invalid". I know it has to do with the database or the long field names in the table. What could be cuasing this?
>>>>
>>>>
>>>>COPY STRUCTURE TO "new.dbf" DATABASE myDatabase WITH PRODUCTION
>>>>
>>>
>>>Skip the apostrophes!
>>>COPY STRUCTURE TO new.dbf DATABASE myDatabase WITH PRODUCTION
>>>
>>
>>I would, but the table name has spaces.
>
>If it is in VFP environment you can use something like
>
>**open/select table you wanna propagate
>
>COPY STRUCTURE TO (getfile('dbf')) DATABASE (getfile('dbc')) WITH PRODUCTION
>
>
>This is interactive way to propagate table. If you need it in APP then you could have parameters stored in variables and then use
>something like ;
>
>use mySourceDbf
>select mySourceDbf
>cTargetDbf='c:\test\myTarget.dbf'
>cTargetDBC='c:\test\test.dbc'
>COPY STRUCTURE TO (cTargetDbf) DATABASE (cTargetDBC) WITH PRODUCTION
>
>
>HTH
>Sergio

Thanks.
Greg Reichert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform