Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread AutoInc reset
Fri, Dec 19 2008 2:27 AMPermanent Link

andrej
I empty tables here and there and I would like to reset the AutoInc counter.
How do I do that?
Fri, Dec 19 2008 3:00 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

andrej


The easy way - go into DBSys, select alter table and alter the last autoinc value. Slightly more difficult in code (you have to do some typing) its part of the ALTER TABLE statement eg

ALTER TABLE fred LAST AUTOINC 0;

But check it out in the OLH cos its a long time since I've done this.

Roy Lambert [Team Elevate]
Image