FIX: "Incorrect syntax for definition of the 'default' constraint" error when you add an arbitrary columnstore column in SQL Server 2016

Applies to: SQL Server 2016 Enterprise CoreSQL Server 2016 EnterpriseSQL Server 2016 Developer


When you try to add a column to a columnstore index that uses a non-runtime-constant in a default constant in SQL Server 2016, you receive an error message that resembles the following:

Incorrect syntax for definition of the 'default' constraint.
Msg 142, Level 1, State 14
Msg 1750, Level 16, State 0, LineNumber
Could not create constraint or index. See previous errors.

More information

The fix for this issue is included in Cumulative Update 2 for SQL Server 2016 Service Pack 1.


Learn about the terminology that Microsoft uses to describe software updates.