Identity

  • How to reset the Identity column??

    I am using identity column and I want to reset to 1 back how to do that?

    Nita

     

  • If you do not have dependacies you can :

    1. extract data

    2. trancate table

    3. load data back

    Leonid

  • As long as changing the identity isn't going to affect dependencies you can use dbcc checkident(tablename, reseed, 1)...

    This will reseed your identity value back to 1 and the next value incremented to will be 2

    Thanks,

    Anthony

  • Thanks

    Nita

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply