Q
Problem solve Get help with specific problems with your technologies, process and projects.

Resetting automumber fields to begin at 1

I want to export a SQL Server database along with an application we developed. We have entered testing data in the database, which we clear out before sending the code and database. How do I reset the autonumber fields to begin at 1 when the client starts their application?

Try dbcc checkident.

 

For More Information

This was last published in July 2002

Dig Deeper on Microsoft SQL Server Installation

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close