Click here to Skip to main content
16,018,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How i can add identity constraint for the existing column in a table ? for example : table_name - employee and its one of the column to make identity is employee_id Kindly help
Posted
Updated 26-Apr-14 0:39am
v2
Comments
[no name] 26-Apr-14 6:40am    
Perhaps you are looking for ALTER TABLE?
deenasudhakar 11-May-14 9:48am    
Yes i am looking for alter which means adding Identity constraint for the employee_id column
Maciej Los 28-Apr-14 16:35pm    
Does eployee_id column contains unique values?
deenasudhakar 11-May-14 9:49am    
Yes It behaves like primary key
Maciej Los 11-May-14 9:55am    
Behaves like primary key is not equal to primary key.

1 solution

Try this:

Add or Remove Identity Property on Column

if it says

"Saving changes is not permitted in SQL Server"

To change this option, on the Tools menu, click Options, expand Designers, and then click Table and Database Designers.  clear the Prevent saving changes that require the table to be re-created check box.
 
Share this answer
 
v2
Comments
Maciej Los 11-May-14 10:11am    
+5!

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