When you want the identity field of a table to be reset (start with id 1 again), execute the following SQL query:
DBCC CHECKIDENT (tableName, reseed, 0)
Where "tableName" is replaced by the name of your table and the 0 is the new seed.
/Ruud
Showing posts with label sql. Show all posts
Showing posts with label sql. Show all posts
Tuesday, July 28, 2009
Subscribe to:
Posts (Atom)
