DatabaseRestorePlanner Class

Represents the Database Restore Planner.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Smo.DatabaseRestorePlanner

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

Syntax

'Declaration
Public NotInheritable Class DatabaseRestorePlanner
'Usage
Dim instance As DatabaseRestorePlanner
public sealed class DatabaseRestorePlanner
public ref class DatabaseRestorePlanner sealed
[<SealedAttribute>]
type DatabaseRestorePlanner =  class end
public final class DatabaseRestorePlanner

The DatabaseRestorePlanner type exposes the following members.

Constructors

  Name Description
Public method DatabaseRestorePlanner(Server) Initializes a new instance of the DatabaseRestorePlanner class with specified server.
Public method DatabaseRestorePlanner(Server, String) Initializes a new instance of the DatabaseRestorePlanner class with specified server and database name.
Public method DatabaseRestorePlanner(Server, String, DateTime, String) Initializes a new instance of the DatabaseRestorePlanner class with specified server, database name, point in time and recovery file.

Top

Properties

  Name Description
Public property BackupMediaList Gets the backup device item list.
Public property BackupTailLog Gets or sets a value indicating whether to backup tail log.
Public property DatabaseName Gets or sets the database name.
Public property ReadHeaderFromMedia Gets or sets a value indicating whether read header from devices.
Public property RestoreToLastBackup Gets or sets a value indicating whether restore to last backup.
Public property RestoreToPointInTime Gets or sets the restore to point in time.
Public property Server Gets or sets the server.
Public property TailLogBackupFile Gets or sets the tail log backup file.
Public property TailLogWithNoRecovery Gets or sets whether the database restore planner tails log without using recovery.

Top

Methods

  Name Description
Public method CreateRestorePlan() Creates the restore plan.
Public method CreateRestorePlan(RestoreOptions) Creates the restore plan with restore options.
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (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