Share via


SqlDeploymentOptions.GenerateSmartDefaults Property

Definition

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

public bool GenerateSmartDefaults { get; }
member this.GenerateSmartDefaults : bool
Public ReadOnly Property GenerateSmartDefaults As Boolean

Property Value

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

Remarks

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

Applies to