Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Do I reset the next value for an AutoIncrement field
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00814302
Message ID:
00814478
Views:
11
>
ALTER TABLE MyTable ALTER COLUMN MyColumn AUTOINC NEXTVALUE 0 STEP 1
Thanks for all the help,

I was trying to go down this route but kept getting syntax errors.

I had to add the field type and field width to the statement which seemed kind of ridiculous because you can't have anything else but an integer in an autoinc field.
ALTER TABLE MyTable ALTER COLUMN MyColumn i(4) AUTOINC NEXTVALUE 50 STEP 1
Thanks again,

Michael Brennan-White
Send me an email when the shouting stops
Previous
Reply
Map
View

Click here to load this message in the networking platform