Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 numeric counter increment clean up

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-06-03 : 08:13:14
Mário writes "Hy!
Sorry my inglish...
Who can i clean da value of a numeric counter in autoincrement and make it begining from then begin.
Thanks."

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2004-06-03 : 08:42:11
Put your data into another table...
Go to Top of Page

AjarnMark
SQL Slashing Gunting Master

3246 Posts

Posted - 2004-06-03 : 17:30:36
I think Compact & Repair will reset the autonumber value to the highest used value + 1.

If, instead, you are trying to get rid of gaps in the middle, I wouldn't bother unless you really, really have a compelling reason that it MUST be done. In which case, Rick's method of moving into another table would be handy. But if the autonumber values are used elsewhere in the database, such as in a Foreign Key relationship, it will corrupt those links.

-----------------------------------------------------
Words of Wisdom from AjarnMark, owner of Infoneering
Go to Top of Page
   

- Advertisement -