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)
 Identity

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-03-09 : 18:29:46
Mala Mohan writes "Hi,

How can i reset value of identity column when i delete all the rows in the table. In one of your article you have said we can reset this value, but not given solution. I can't trucate this table as it has foreign key reference.

Thanks in advance.

Bye,
Mala Mohan"

graz
Chief SQLTeam Crack Dealer

4149 Posts

Posted - 2002-03-09 : 18:29:46
Please see http://www.sqlteam.com/item.asp?ItemID=8003
Go to Top of Page

samrat
Yak Posting Veteran

94 Posts

Posted - 2002-03-09 : 20:48:15
U can use DBCC Checkident.. use BOL for the syntax

Cheers

Samrat
Go to Top of Page
   

- Advertisement -