How do I drop a column with object dependencies in SQL Server 2008?

后端 未结 5 1381
北恋
北恋 2021-01-01 11:30

The error message I\'m obtaining when trying to drop a column:

The object \'defEmptyString\' is dependent on column \'fkKeywordRolleKontakt\'.

Msg

5条回答
  •  不思量自难忘°
    2021-01-01 12:08

    I ran into a simpler solution.

    1. DELETE the data of that column.
    2. Once the column has no value inside it do -

    ALTER TABLE DROP COLUMN

    This way the column is easily dropped.

    P.S - This is a headache if you have like extreme amounts of data in the column.

提交回复
热议问题