SqlDeploymentOptions.GenerateSmartDefaults Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.