How to delete all rows of data including the self-incrementing pk value so I can start from 1 again?

Hi, I'm using sql 2012.
I made a booboo when inserting rows into a table and now it has PK of 1, 2 and 4 for 3 rows of my data.  I want to start over again by deleting all rows and the self inc key value so when I insert again it will start at 1.  I can't remember which command or how do I do that in t-sql.  Thank you.
lapuccaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft SQL Server Data DudeCommented:
TRUNCATE TABLE your_table_name  --  delete all rows and reseed identity fields

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dale FyeOwner, Developing Solutions LLCCommented:
Personal opinion:  You should not worry about your PK not being sequential, it rarely will be and should never be exposed to your users anyway.  They do not need to see it; if you need a sequential number, you should generate it yourself, but you will eventually delete a record and end up with a gap; so what!
lapuccaAuthor Commented:
Thank you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Query Syntax

From novice to tech pro — start learning today.