Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append from a table with autonum
Message
 
 
To
08/06/2011 02:16:12
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01513452
Message ID:
01513530
Views:
36
Thanks, everyone, for your replies. Under the circumstances, I think I will convert the autoincrement type to a character field and manage with an insert proc as I have some other sync issues to factor in as well. As these things go, the scale of the project is increasing, so a quick, simple solution like autoincrement doesn't make much sense anymore.


>>I'm copying table contents from one file to another and ran into an error while copying a table with an autonumber field. It says the field is read-only (which makes sense, I guess), and won't copy the records using an append from statement. Is there a quick/standard way to get around this? I know I could do a file copy, but was hoping to just pull records as needed from the other table.
>>
>>As always, thanks in advance.
>
>The trick is to eliminate the autoinc fields from the amount copied over.
>To be able to use Fieldlists in xBase and SQL I build them into a variable
>and makroexpand that for SQL or add as Fieldlist for xBase.
>
>HTH
>
>thomas
Steve Howie, owner
DaSH Technology
Denver, CO
Previous
Reply
Map
View

Click here to load this message in the networking platform