DacDeployOptions.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 or set boolean that specifies whether default values should be generated to populate NULL columns that are constrained to NOT NULL values.
public bool GenerateSmartDefaults { get; set; }
[Microsoft.SqlServer.Dac.OptionDescription(typeof(Microsoft.Data.Tools.Schema.Sql.CommandLine.CommandLineResources), "GenerateSmartDefaults")]
public bool GenerateSmartDefaults { get; set; }
member this.GenerateSmartDefaults : bool with get, set
[<Microsoft.SqlServer.Dac.OptionDescription(typeof(Microsoft.Data.Tools.Schema.Sql.CommandLine.CommandLineResources), "GenerateSmartDefaults")>]
member this.GenerateSmartDefaults : bool with get, set
Public Property GenerateSmartDefaults As Boolean
Property Value
True if default values should be generated; otherwise false. Default is false.
- Attributes
Remarks
This is useful when needing to add a new NOT NULL column to an existing table with data.