Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy to .. database fails with error
Message
From
11/06/2012 11:41:36
 
 
To
11/06/2012 10:56:38
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01545790
Message ID:
01545801
Views:
59
>>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform