Skip to content

Sumit Gupta

bookmarking my life

Reseed Auto Increment Value in SQL Server

May 7, 2011 by Sumit Gupta Database, MS SQL Server, SQL

You can reseed the Auto increment field to desire number by using following SQL statement [I think it is specific for SQL Server only] other Database have their own methods.

DBCC CHECKIDENT (<TableName>, RESEED, 0)

Works great for me on Sql Server 2008

Share this:

  • Facebook
  • Twitter
  • Reddit
  • LinkedIn
  • Pinterest
  • WhatsApp
  • Telegram
Tagged SQL, SQL Server

Post navigation

Previous: MySql 5.5 : funny about it
Next: Read System TimeZone to DB

© 2025 Sumit Gupta // Powered by WordPress