I need to remove a primary key from one column and add it to another on an existing table.
I created the table with the following:
Create table xxxxxx
xxx
xxx
contstraint pk_status_log primary key (client_data_id, account_id)
go
Now I need the primary key removed from account_id and added to a column named 'status_number'.
Can anyone help me with the correct 'Alter table' syntax? Thanks for any help you can provide.
I created the table with the following:
Create table xxxxxx
xxx
xxx
contstraint pk_status_log primary key (client_data_id, account_id)
go
Now I need the primary key removed from account_id and added to a column named 'status_number'.
Can anyone help me with the correct 'Alter table' syntax? Thanks for any help you can provide.