Reset autonumber column

aspfun

Registered User.
Local time
Yesterday, 22:31
Joined
Apr 22, 2006
Messages
29
There is a autonumber column in one table Order.
Everyday I need delete records in Order and then append records into it.
Doing so, autonumber keeps on increasing.
Is there any way to reset Autonumber from 0 after deleting records?
 
I'd say "who cares?", but you can try a compact/repair after deleting the records. That will sometimes reset the autonumber.
 
To expand a little on pbaldy's comment, most experienced developers will advise that; An Autonumber is for the database to maintain referential integrity. As the old saying goes, "An Autonumber is not for human consumption." so it should be irrelevant to the user what the autonumber is holding.

Having said that perhaps you will find a solution here.
 

Users who are viewing this thread

Back
Top Bottom