Mathew J Kulangara
SSCommitted
Points: 1610
More actions
August 9, 2005 at 7:45 am
#580714
Not sure if this is the best way to do it..but this works..
select * into #store from {table}
truncate {table}
insert
select {non_id fields} from #store
HTH
Mathew J Kulangarasqladventures.blogspot.com
Andrew Benham
Valued Member
Points: 58
August 9, 2005 at 11:12 pm
#580906
From SQL Server Books Online...
DBCC CHECKIDENT ('table_name', RESEED, new_reseed_value)
Enjoy!
Andrew
jcgr
SSC Veteran
Points: 200
August 10, 2005 at 6:12 am
#580968
An easy way is:
Set the autonumber (Identity) in off.
save the table
Set the autonumber (Identity) in on.
Save the table.
Viewing 3 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply