I am trying to drop a column through TSQL, but get the following error:
The code used to create the column is:
I can remove the column through Enterprise Manager, but not through Query Analyser. Any ideas why?
Code:
Server: Msg 4922, Level 16, State 1, Line 9
ALTER TABLE DROP COLUMN D failed because DEFAULT CONSTRAINT DF__Estimate_Site__D__2C8964E2 accesses this column.
Code:
alter table Estimate_Site_AssetsAddList
add D decimal(9, 4) not null default 0 with values