Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append fields with AUTOINC
Message
From
31/10/2006 09:33:37
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
To
31/10/2006 09:20:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01165762
Message ID:
01165765
Views:
17
This message has been marked as the solution to the initial question of the thread.
Hi Nuno do the following
ALTER TABLE mytable alter column id as integer
append data to mytable
ALTER TABLE mytable alter column id as integer AUTOINC NEXTVALUE mynextid

>Hi all!
>I have a small program used to update vfp databases. I use a empty DB and then I append from the old one. The problem is that when an AUTOINC field haven´t start from 1... Is there any easy way to disable autoinc change autoinc fiel to integer an then change agian to autoinc and establish the "Nexto value" to NNN.
>
>thank's in dvance,
>NPedro
Alexandre Palma
Senior Application Architect
Previous
Reply
Map
View

Click here to load this message in the networking platform