DacDeployOptions.GenerateSmartDefaults Property

SQL Server 2014

Updated: April 20, 2017

Get or set boolean that specifies whether default values should be generated to populate NULL columns that are constrained to NOT NULL values.

Namespace:   Microsoft.SqlServer.Dac
Assembly:  Microsoft.SqlServer.Dac (in Microsoft.SqlServer.Dac.dll)

public bool GenerateSmartDefaults { get; set; }

Property Value

Type: System.Boolean

True if default values should be generated; otherwise false. Default is false.

This is useful when needing to add a new NOT NULL column to an existing table with data.

Return to top

Community Additions