“Save changes is not permitted” when changing an existing column to be nullable

后端 未结 3 1270
夕颜
夕颜 2020-12-10 11:52

I\'ve got a SQL Database Table, which has 35 existing records. One of the fields in this table is called Name, nvarchar(100), not null

相关标签:
3条回答
  • 2020-12-10 12:14

    I've found the solution. Go to "Tools > Options > Designers > Table and Database Designers":

    enter image description here

    0 讨论(0)
  • 2020-12-10 12:16

    I had the same problem; wanting to Allow Nulls for a column that previously did not. Consider MS's warning to NOT turn off this option: http://support.microsoft.com/kb/956176

    And their recommendation to use Transact-SQL to solve the problem, e.g. alter table MyTable alter column MyDate7 datetime NULL

    This solved it for me.

    0 讨论(0)
  • 2020-12-10 12:28

    It's a setting in SSMS.

    Tools - Option - Designers - Prevent saving changes that require table re-creation

    0 讨论(0)
提交回复
热议问题