Question:
Hello,
I created a table with the identity column "ID". It will increase by 1 when I insert a row to the table.
However, when I wanted to publish my database with my application, I deleted all the rows in my table. At this time, I wanted the identity to begin with 1 again. Can I do it in sql server management studio or is there other ways to do it?
Thanks.
Answer1:
Give a look at DBCC CHECKIDENTITY in books online. You ought to be able to do something like:
Sponsor