Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
hueby
Posting Yak Master
127 Posts |
Posted - 2005-01-03 : 10:55:51
|
| Hi, is there a way you can reset the Identity field that is set to auto-number. After deleting entries, it still picks up the next number from the deleted previous number. I would like to "reset" to 1 again. ??? |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2005-01-03 : 11:00:08
|
DBCC CHECKIDENT('TableName', RESEED, 1)Truncate table will also restart the identity.Go with the flow & have fun! Else fight the flow |
 |
|
|
hueby
Posting Yak Master
127 Posts |
Posted - 2005-01-03 : 11:01:53
|
| thank you Spirit! |
 |
|
|
|
|
|