How do I reset the Primary Key index to 1 using Visual Studio 2008 Server Explorer?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It sounds like you have a table, with data, and you want to restart PK Identity numbering back to 1.
You’ll have to delete all data and reset the seed on the identity column. This can be done all in one statement.
Create a new query by right-clicking on the database server or a table, and choose New query (or whatever command is similar):