Propriedade do RDL RestoreOptions.ReplaceDatabase
Gets or sets SQL Server should create the specified database and its related files even if another database already exists with the same name
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (em Microsoft.SqlServer.SmoExtended.dll)
Sintaxe
'Declaração
Public Property ReplaceDatabase As Boolean
Get
Set
'Uso
Dim instance As RestoreOptions
Dim value As Boolean
value = instance.ReplaceDatabase
instance.ReplaceDatabase = value
public bool ReplaceDatabase { get; set; }
public:
property bool ReplaceDatabase {
bool get ();
void set (bool value);
}
member ReplaceDatabase : bool with get, set
function get ReplaceDatabase () : boolean
function set ReplaceDatabase (value : boolean)
Valor da propriedade
Tipo: System.Boolean
True if the SQL Server should create the specified database; otherwise, false.