ALTER TABLE DROP COLUMN failed because one or more objects access this column

前端 未结 7 1611
[愿得一人]
[愿得一人] 2020-12-05 22:26

I am trying to do this:

ALTER TABLE CompanyTransactions DROP COLUMN Created

But I get this:

Msg 5074, Level 16, Stat

7条回答
  •  感情败类
    2020-12-05 23:17

    When you alter column datatype you need to change constraint key for every database

      alter table CompanyTransactions drop constraint [df__CompanyTr__Creat__0cdae408];
    

提交回复
热议问题