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

前端 未结 7 1557
[愿得一人]
[愿得一人] 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];
    
    0 讨论(0)
提交回复
热议问题