Share via


DacDeployOptions.CreateNewDatabase Property

Definition

Get or set boolean that specifies whether the existing database will be dropped and a new database created before proceeding with the actual deployment actions. Acquires single-user mode before dropping the existing database.

public bool CreateNewDatabase { get; set; }
[Microsoft.SqlServer.Dac.OptionDescription(typeof(Microsoft.Data.Tools.Schema.Sql.CommandLine.CommandLineResources), "CreateNewDatabase")]
public bool CreateNewDatabase { get; set; }
member this.CreateNewDatabase : bool with get, set
[<Microsoft.SqlServer.Dac.OptionDescription(typeof(Microsoft.Data.Tools.Schema.Sql.CommandLine.CommandLineResources), "CreateNewDatabase")>]
member this.CreateNewDatabase : bool with get, set
Public Property CreateNewDatabase As Boolean

Property Value

True to drop and re-create the database; otherwise, false. Default is false.

Attributes

Applies to