I've created a column called "Identified" and I've assigned a default value of "1". Now I realized that I would like to delete that column. But when I try I get the following error:
Msg 5074, Level 16, State 1, Line 5
The object 'DF__orders__Identifi__403A8C7D' is dependent on column 'Identified'.Msg 4922, Level 16, State 9, Line 5
ALTER TABLE DROP COLUMN Identified failed because one or more objects access this column.
Here is the code used:
ALTER TABLE BikeStores.sales.orders
DROP COLUMN Identified;
I've also tried:
ALTER TABLE BikeStores.sales.orders
DROP Identified;
But in this case the error get is:
Msg 3728, Level 16, State 1, Line 5
'Identified' is not a constraint.Msg 3727, Level 16, State 0, Line 5
Could not drop constraint. See previous errors.
Any tip on how to fix this error? Thanks in advance