July 22, 2004 at 1:58 am
How to Reset the value of an Identity column in SQL Server Table
July 22, 2004 at 6:58 am
Hi Ravi,
You can change the seed value of identity column by using the statement
DBCC CHECKIDENT ('table_name', RESEED, new_reseed_value)
By using the truncate command the identity column is reset to the seed value.
Hope this answers your query.
Nivedita Sundar.N
July 22, 2004 at 11:29 pm
Hi Ravi,
The truncate option wont work for columns with dependencies. The DBCC CHECKIDENT will work.
Nivedita Sundar.N
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy