Click here to Skip to main content
15,886,567 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
Hi All,
I am working with SQL2000. In my table there is a column with auto increment. Now scenario is that auto increment data like 1,2,3,4,5 now I want to again start from 3,4,5 that is data will come like 1,2,3,4,5,3,4,5 How can it is possible in SQL2000.


Thanks & Regards
Indrajit Dasgupta
Posted
Comments
Ram Gunti 7-Jan-14 4:27am    
u want the above stated scenario while inserting new rows or you wanna modify the existing rows in the table.....

1 solution

Why do you want that way? If you choose that way, you can't stop where you want.
Better way is do it manually like using some logic based on reference of your data.

If still you want to go with your way, check this Tip/Trick
Reset Table Identity[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900