Partilhar via


Propriedade do RDL 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.

Namespace:  Microsoft.SqlServer.Dac.Deployment
Assembly:  Microsoft.SqlServer.Dac.Extensions (em Microsoft.SqlServer.Dac.Extensions.dll)

Sintaxe

'Declaração
Public ReadOnly Property CreateNewDatabase As Boolean 
    Get
'Uso
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

Valor da propriedade

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

Consulte também

Referência

SqlDeploymentOptions Classe

Namespace Microsoft.SqlServer.Dac.Deployment