how to drop a column that is part of a primary key

Hi,

I have a table with 4 columns that are a primary key and now the business requirements have changed and one of the columns should be dropped, and the primary key will br of ther remaining 3 columns.

I am pretty sure that I cannot drop a column that is part of a primary key, so the question is what would be the most effecient way to perfrom it ?

Can I disable/enable the primary key or do I need to drop and create it ?

May 25th, 2015 1:54am

You need to first drop the key, then the column and then recreate the primary key based on new set of columns.
Free Windows Admin Tool Kit Click here and download it now
May 25th, 2015 1:59am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics