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 {
	[CompilerGeneratedAttribute]
	get;
	[CompilerGeneratedAttribute]
	set;
}

Property Value

Type: System.Boolean

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

Return to top
Show: