How to remove primary key constraint from column.
I have table t_data_dnefrc table. In that i have AccountNbr column which is primary key. I want to remove Primary key constraint for that column.
How to remove primary key constraint from column.
I have table t_data_dnefrc table. In that i have AccountNbr column which is primary key. I want to remove Primary key constraint for that column.
Note: this is mysql way - check Marcus's answer for the correct answer to OP's question.
ALTER TABLE t_data_dnefrc DROP PRIMARY KEY;
You need to drop the constraint, the name of which can be found in the Keys folder of the table in SQL Management Studio.
ALTER TABLE t_data_dnefrc
DROP CONSTRAINT constraintName;