Assume that you have installed Service Pack 1 (SP1) for the Standard or Express edition of Microsoft SQL Server 2016. When you try to add a NOT NULL column that has default values to a non-empty clustered columnstore index, for example, by using the ALTER TABLE … ADD COLUMN … NOT NULL … DEFAULT … statement, an error message that resembles the following is displayed.
Msg 515, Level 16, State 4Cannot insert the value NULL into column '<column name>', table '<table name>'; column does not allow nulls. The alter table to add column statement fails.
Note This issue does not occur in the Enterprise edition of SQL Server 2016.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
رقم الموضوع: 4013851 - آخر مراجعة: 20/03/2017 - المراجعة: 6