Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Old Forums
 CLOSED - General SQL Server
 IDENTITY column
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

swatib
Posting Yak Master

India
173 Posts

Posted - 12/13/2005 :  06:48:11  Show Profile
Hi All,

How do I reset or reseed the IDENTITY column?




Njoy Life

madhivanan
Premature Yak Congratulator

India
22864 Posts

Posted - 12/13/2005 :  07:01:29  Show Profile  Send madhivanan a Yahoo! Message
DBCC CHECKIDENT (TableName, RESEED, 0)

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

shallu1_gupta
Constraint Violating Yak Guru

India
394 Posts

Posted - 12/13/2005 :  07:02:29  Show Profile
DBCC CHECKIDENT ( 'table_name' [ , { NORESEED | { RESEED [ , new_reseed_value ] } } ] )
Go to Top of Page

swatib
Posting Yak Master

India
173 Posts

Posted - 12/13/2005 :  07:03:47  Show Profile
Many Thanks!!

Njoy Life
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.1 seconds. Powered By: Snitz Forums 2000