alfardan
asked on
Reset Identity to some value
Hi
I have a column that is auto-incremented, how do I reset its incremental value to 30 for example?
I need an SQL syntax for that. and the database that this column is in is of MS SQL 2000
I have a column that is auto-incremented, how do I reset its incremental value to 30 for example?
I need an SQL syntax for that. and the database that this column is in is of MS SQL 2000
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
very good article by Mr. Pinal Dave (SQL Server MVP) at
http://blog.sqlauthority.com/2009/04/01/sql-server-reseed-identity-of-table-table-missing-identity-values-gap-in-identity-column/
http://blog.sqlauthority.com/2009/04/01/sql-server-reseed-identity-of-table-table-missing-identity-values-gap-in-identity-column/
Have a look at the following:
http://technet.microsoft.com/en-us/library/ms176057.aspx
Good Luck!
Gary
http://technet.microsoft.com/en-us/library/ms176057.aspx
Good Luck!
Gary
DBCC CHECKIDENT ('mytable', NORESEED)