TipsOnLips.net

Your .net tips and tricks source

About the author

Author Name is someone.
E-mail me Send mail

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010


SQL Server - Reset Primary Key

When deleting all records from a SQL Server table, you may need to reset the primary key to start from

zero again when inserting new rows. Just execute the following script:

DBCC CHECKIDENT('TableName', RESEED, 0)


Categories: SQL Server
Posted by developer on Friday, December 14, 2007 3:20 AM
Permalink | Comments (0) | Post RSSRSS comment feed
Comments are closed