Export (0) Print
Expand All

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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft