Partager via


Propriété SqlDeploymentOptions.GenerateSmartDefaults

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

Espace de noms :  Microsoft.SqlServer.Dac.Deployment
Assembly :  Microsoft.SqlServer.Dac.Extensions (en Microsoft.SqlServer.Dac.Extensions.dll)

Syntaxe

'Déclaration
Public ReadOnly Property GenerateSmartDefaults As Boolean 
    Get
'Utilisation
Dim instance As SqlDeploymentOptions 
Dim value As Boolean 

value = instance.GenerateSmartDefaults
public bool GenerateSmartDefaults { get; }
public:
property bool GenerateSmartDefaults {
    bool get ();
}
member GenerateSmartDefaults : bool
function get GenerateSmartDefaults () : boolean

Valeur de propriété

Type : System.Boolean
True if default values should be generated; otherwise false. Default is false.

Notes

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

Voir aussi

Référence

SqlDeploymentOptions Classe

Espace de noms Microsoft.SqlServer.Dac.Deployment