Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to alter the identity property ?

Status
Not open for further replies.

magdyk

Programmer
May 7, 2001
12
0
0
EG
i would like alter identity property to change the seed value of an existing column using T-SQL
 

Use DBCC CHECKIDENT (<table_name>, RESEED, <new seed>)

Example:
DBCC CHECKIDENT (Employees, RESEED, 1001)
Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top