SQL Server Forums
Profile | Register | 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
22761 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.06 seconds. Powered By: Snitz Forums 2000