مشاركة عبر


RestoreOptions Class

Represents the restore options.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Smo.RestoreOptions

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

Syntax

'Declaration
Public Class RestoreOptions
'Usage
Dim instance As RestoreOptions
public class RestoreOptions
public ref class RestoreOptions
type RestoreOptions =  class end
public class RestoreOptions

The RestoreOptions type exposes the following members.

Constructors

  Name Description
Public method RestoreOptions Initializes a new instance of the RestoreOptions class.

Top

Properties

  Name Description
Public property Blocksize Specifies the physical block size, in bytes.
Public property BufferCount Specifies the total number of I/O buffers to be used for the restore operation.
Public property ClearSuspectPageTableAfterRestore Gets or sets whether to delete entries in the suspect page table after restore.
Public property ContinueAfterError Gets or sets whether the restore operation is to continue after an error is encountered.
Public property KeepReplication Gets or sets whether to prevent replication settings from being removed when a database backup or log backup is restored on a warm standby server and the database is recovered.
Public property MaxTransferSize Gets or sets the largest unit of transfer in bytes to be used between the backup media and SQL Server.
Public property PercentCompleteNotification Gets or sets the percentage interval for PercentCompleteEventHandler event handler calls for individual Restore Operations.
Public property RecoveryState Gets or sets the recovery state.
Public property 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
Public property SetRestrictedUser Gets or sets whether to restrict access for the newly restored database to members of the db_owner, dbcreator, or sysadmin roles.
Public property StandByFile Undo uncommitted transactions, but save the undo actions in a standby file that allows the recovery effects to be reversed.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Management.Smo Namespace