rated by 0 users
This post has 0 Replies | 1 Follower

Top 10 Contributor
Male
Posts 33
Md. Elias Hossain Posted: 01-17-2010 7:19 AM

Resetting IDENTITY column to a new value

During application development we always entry some test data also our tester test with test data and as a result if the table contains IDENTITY columns( specially ID column) which incremented to the number of data already entered.

However, when the application goes running with real data to the client and the client want his ID values from starting 1, then we need to RESEED the value of the IDENTITY column of the table after clearing all data. This can be done as bellows:

DBCC CHECKIDENT (TableName, RESEED, 0)

However, can be reseed with any values instead of zero(0) in the above statement, thanks

Md. Elias Hossain
MCP, MCTS(WEB)
Software Engineer

Page 1 of 1 (1 items) | RSS