3
Reply

how to update identity value

Rakesh Kalluri

Rakesh Kalluri

Dec 04, 2014
1.1k
0

    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

    Munesh Sharma
    January 07, 2015
    0

    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

    Khargesh Rajput
    December 23, 2014
    0

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

    daniel amose
    December 19, 2014
    0