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

后端 未结 3 1269
夕颜
夕颜 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: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.

提交回复
热议问题