Hi Is there anyway to rest the identity in sql server 2005. I want to generate receipt numbers for customers starting from 100001, 100002,..., 9999999. After recahing 9999999 it should again start form 100001. Please let us know how can this be done. Thanx.. Deepak
Sorry, but the identity property is really a bad choice for what you are trying to do. There is no guarantee that identity values will be consecutive or even gapless. I would rather built my own logic upon a normal integer typed column.