Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
July 27, 1999
A. If there are no foreign keys on the table then a simple TRUNCATE TABLE will do the trick.
If there are foreign keys then first delete all rows - DELETE
Then reset the identity :-
Under 7.0 - DBCC CHECKIDENT(,RESEED,0)
Under 6.5 - DBCC CHECKIDENT()
You May Also Like