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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 How to reset a Identity

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-07-05 : 18:22:58
Claudia writes "Hi, good Day!

My question is,how can I reset the value of an identity column.
I get the limit of this filed (255), and I want to delete all the rows of that table and that could start with "0"
Could you please help me?

Thanks in advance

Claudia Cruz"

graz
Chief SQLTeam Crack Dealer

4149 Posts

Posted - 2002-07-05 : 18:22:58
A quick search of the site on "identity" turns up this article http://www.sqlteam.com/item.asp?ItemID=8003 about identity columns which has the info near the bottom.
Go to Top of Page

Da_Retina
Posting Yak Master

109 Posts

Posted - 2002-07-07 : 06:47:19
Use TRUNCATE TABLE on the table that U want to reset its seed.
it is the same as DELETE but it does not fire delete triggers and resetes seeds

------------------
If I am to do it,
I will, and NOW ..
Go to Top of Page
   

- Advertisement -