Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ReplaceDatabase Property

RestoreOptions.ReplaceDatabase Property

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)

public bool ReplaceDatabase { get; set; }

Property Value

Type: Boolean
True if the SQL Server should create the specified database; otherwise, false.

Community Additions

ADD
Show:
© 2015 Microsoft