DacDeployOptions.CreateNewDatabase Property

SQL Server 2014

Updated: April 20, 2017

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.

Namespace:   Microsoft.SqlServer.Dac
Assembly:  Microsoft.SqlServer.Dac (in Microsoft.SqlServer.Dac.dll)

public bool CreateNewDatabase { get; set; }

Property Value

Type: System.Boolean

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

Return to top

Community Additions