Rakesh Kalluri
how to update identity value
By Rakesh Kalluri in SQL Server on Dec 04 2014
  • Munesh Sharma
    Jan, 2015 7

    You need toset identity_insert YourTable ON Then delete your row and reinsert it with different identity.Once you have done the insert don't forget to turn identity_insert offset identity_insert YourTable OFF

    • 0
  • Khargesh Rajput
    Dec, 2014 23

    SET IDENTITY_INSERT Table ON suppose we have to update identity value from 2 to 1 DELETE FROM Table WHERE ID=2INSERT INTO Table(IdentityCol,) VALUES(1)SET IDENTITY_INSERT Table OFF

    • 0
  • daniel amose
    Dec, 2014 19

    DBCC CHECKIDENT ('TABLENAME', RESEED, YOUR_SEED_VALUE);

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS