Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to modify identity column in specify existing column to the table through programing query???
Suppose, a table have 3 fields.
1st column datatype is bigint & not set identity.
I want to do that, I set the identity to 1st existing column without drop this column through programing query....

How will i solve above problem???
please anybody help me....
Posted
Comments
member60 20-Apr-12 4:42am    
through program ? what program it is ?

1 solution

you can try this and reset id

SQL
DBCC CHECKIDENT ('table_name', RESEED, new_reseed_value)
 
Share this answer
 
v2

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