Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 (in Microsoft.SqlServer.SmoExtended.dll)
Syntax
'Declaration
Public Property ReplaceDatabase As Boolean
Get
Set
'Usage
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)
Property Value
Type: System.Boolean
True if the SQL Server should create the specified database; otherwise, false.