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 |
|
cwtriguns2002
Constraint Violating Yak Guru
272 Posts |
Posted - 2007-10-04 : 23:00:23
|
| Hi all... how to reset the primary key to 1? thanksRonRON________________________________________________________________________________________________"I won't last a day without SQL" |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
|
cwtriguns2002
Constraint Violating Yak Guru
272 Posts |
Posted - 2007-10-04 : 23:33:47
|
| Hi KH, thanks for the link...but i can't find anywhere how to reset the primary key to 1.thanks,RonRON________________________________________________________________________________________________"I won't last a day without SQL" |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-10-04 : 23:40:32
|
look under "Deleting rows from a table with an Identity Column"quote: To reset the identity seed you need to use a DBCC command. . . . .
KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
|
|
|