Partager via


Propriété SqlDeploymentOptions.CreateNewDatabase

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.

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

Syntaxe

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

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

Valeur de propriété

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

Voir aussi

Référence

SqlDeploymentOptions Classe

Espace de noms Microsoft.SqlServer.Dac.Deployment