I'm trying to drop some columns in a table, and for the most part, it's working. But I have a couple of them that give this error when I try to drop them.
Server: Msg 5074, Level 16, State 1, Line 2
The object 'DF_PurchaseOrders_Approved' is dependent on column 'Approved'.
I figured out that I'm getting this because I have a default value specified for these columns. Can someone please tell me how to specify in an ALTER statement how to "turn off" the default value?
Here's my DROP Statement:
ALTER TABLE Inventory DROP COLUMN Approved
Thanks
Server: Msg 5074, Level 16, State 1, Line 2
The object 'DF_PurchaseOrders_Approved' is dependent on column 'Approved'.
I figured out that I'm getting this because I have a default value specified for these columns. Can someone please tell me how to specify in an ALTER statement how to "turn off" the default value?
Here's my DROP Statement:
ALTER TABLE Inventory DROP COLUMN Approved
Thanks