Compartilhar via


Server.Restore Method

Definition

Overloads

Restore(String, String, Boolean, RestoreLocation[], RestoreSecurity, String, String, ReadWriteMode, Boolean)

Restores an Analysis Services database from a backup file to the specified database, given a password, an overwrite flag, multiple remote servers, specifying security settings, password, storage location, and read\write mode.

Restore(String, String, Boolean, RestoreLocation[], RestoreSecurity, String, String, ReadWriteMode)

Restores an Analysis Services database from a backup file to the specified database, given a password, an overwrite flag, multiple remote servers, specifying security settings, password, storage location, and read\write mode.

Restore(String, String, Boolean, RestoreLocation[], RestoreSecurity, String, String)

Restores an Analysis Services database from a backup file to the specified database, given a password, an overwrite flag, multiple remote servers, specifying security settings, password, and storage location.

Restore(String, String, Boolean, RestoreLocation[], RestoreSecurity, String)

Restores an Analysis Services database from a backup file to the specified database, given an overwrite flag, multiple remote servers, and specifying security settings and password.

Restore(String, String, Boolean, RestoreLocation[], RestoreSecurity)

Restores an Analysis Services database from a backup file to the specified database, given an overwrite flag, multiple remote servers, and specifying security settings.

Restore(String, String, Boolean)

Restores an Analysis Services database from a backup file to the specified database, given an overwrite flag.

Restore(String, String)

Restores an Analysis Services database from a backup file to the specified database.

Restore(String)

Restores an Analysis Services database from a backup file.

Restore(RestoreInfo)

Restores an Analysis Services database from a backup file, using the options set on the provided RestoreInfo object.

Restore(String, String, Boolean, RestoreLocation[])

Restores an Analysis Services database from a backup file to the specified database, given an overwrite flag and multiple remote servers.

Restore(String, String, Boolean, RestoreLocation[], RestoreSecurity, String, String, ReadWriteMode, Boolean)

Restores an Analysis Services database from a backup file to the specified database, given a password, an overwrite flag, multiple remote servers, specifying security settings, password, storage location, and read\write mode.

public void Restore (string file, string databaseName, bool allowOverwrite, Microsoft.AnalysisServices.RestoreLocation[] locations, Microsoft.AnalysisServices.RestoreSecurity security, string password, string dbStorageLocation, Microsoft.AnalysisServices.ReadWriteMode readWriteMode, bool ignoreIncompatibilities);
member this.Restore : string * string * bool * Microsoft.AnalysisServices.RestoreLocation[] * Microsoft.AnalysisServices.RestoreSecurity * string * string * Microsoft.AnalysisServices.ReadWriteMode * bool -> unit
Public Sub Restore (file As String, databaseName As String, allowOverwrite As Boolean, locations As RestoreLocation(), security As RestoreSecurity, password As String, dbStorageLocation As String, readWriteMode As ReadWriteMode, ignoreIncompatibilities As Boolean)

Parameters

file
String

The name and location of the file to restore.

databaseName
String

The database to restore to.

allowOverwrite
Boolean

true to indicate that the database will be overwritten, if it exists; otherwise, false.

locations
RestoreLocation[]

An array of RestoreLocation objects, specifying multiple remote servers to restore to.

security
RestoreSecurity

A RestoreSecurity object that specifies the security settings for the restore.

password
String

The password to use to decrypt the restoration file.

dbStorageLocation
String

The storage location for the file to restore.

readWriteMode
ReadWriteMode

The read/write mode of the database.

ignoreIncompatibilities
Boolean

Whether ignore model incompatibilities.

Applies to

Restore(String, String, Boolean, RestoreLocation[], RestoreSecurity, String, String, ReadWriteMode)

Restores an Analysis Services database from a backup file to the specified database, given a password, an overwrite flag, multiple remote servers, specifying security settings, password, storage location, and read\write mode.

public void Restore (string file, string databaseName, bool allowOverwrite, Microsoft.AnalysisServices.RestoreLocation[] locations, Microsoft.AnalysisServices.RestoreSecurity security, string password, string dbStorageLocation, Microsoft.AnalysisServices.ReadWriteMode readWriteMode);
member this.Restore : string * string * bool * Microsoft.AnalysisServices.RestoreLocation[] * Microsoft.AnalysisServices.RestoreSecurity * string * string * Microsoft.AnalysisServices.ReadWriteMode -> unit
Public Sub Restore (file As String, databaseName As String, allowOverwrite As Boolean, locations As RestoreLocation(), security As RestoreSecurity, password As String, dbStorageLocation As String, readWriteMode As ReadWriteMode)

Parameters

file
String

The name and location of the file to restore.

databaseName
String

The database to restore to.

allowOverwrite
Boolean

true to indicate that the database will be overwritten, if it exists; otherwise, false.

locations
RestoreLocation[]

An array of RestoreLocation objects, specifying multiple remote servers to restore to.

security
RestoreSecurity

A RestoreSecurity object that specifies the security settings for the restore.

password
String

The password to use to decrypt the restoration file.

dbStorageLocation
String

The storage location for the file to restore.

readWriteMode
ReadWriteMode

The read/write mode of the database.

Applies to

Restore(String, String, Boolean, RestoreLocation[], RestoreSecurity, String, String)

Restores an Analysis Services database from a backup file to the specified database, given a password, an overwrite flag, multiple remote servers, specifying security settings, password, and storage location.

public void Restore (string file, string databaseName, bool allowOverwrite, Microsoft.AnalysisServices.RestoreLocation[] locations, Microsoft.AnalysisServices.RestoreSecurity security, string password, string dbStorageLocation);
member this.Restore : string * string * bool * Microsoft.AnalysisServices.RestoreLocation[] * Microsoft.AnalysisServices.RestoreSecurity * string * string -> unit
Public Sub Restore (file As String, databaseName As String, allowOverwrite As Boolean, locations As RestoreLocation(), security As RestoreSecurity, password As String, dbStorageLocation As String)

Parameters

file
String

The name and location of the file to restore.

databaseName
String

The database to restore to.

allowOverwrite
Boolean

true to indicate that the database will be overwritten, if it exists; otherwise, false.

locations
RestoreLocation[]

An array of RestoreLocation objects, specifying multiple remote servers to restore to.

security
RestoreSecurity

A RestoreSecurity object that specifies the security settings for the restore.

password
String

The password to use to decrypt the restoration file.

dbStorageLocation
String

The storage location for the file to restore.

Applies to

Restore(String, String, Boolean, RestoreLocation[], RestoreSecurity, String)

Restores an Analysis Services database from a backup file to the specified database, given an overwrite flag, multiple remote servers, and specifying security settings and password.

public void Restore (string file, string databaseName, bool allowOverwrite, Microsoft.AnalysisServices.RestoreLocation[] locations, Microsoft.AnalysisServices.RestoreSecurity security, string password);
member this.Restore : string * string * bool * Microsoft.AnalysisServices.RestoreLocation[] * Microsoft.AnalysisServices.RestoreSecurity * string -> unit
Public Sub Restore (file As String, databaseName As String, allowOverwrite As Boolean, locations As RestoreLocation(), security As RestoreSecurity, password As String)

Parameters

file
String

The name and location of the file to restore.

databaseName
String

The database to restore to.

allowOverwrite
Boolean

true to indicate that the database will be overwritten, if it exists; otherwise, false.

locations
RestoreLocation[]

An array of RestoreLocation objects, specifying multiple remote servers to restore to.

security
RestoreSecurity

A RestoreSecurity object that specifies the security settings for the restore.

password
String

The password to use to decrypt the restoration file.

Applies to

Restore(String, String, Boolean, RestoreLocation[], RestoreSecurity)

Restores an Analysis Services database from a backup file to the specified database, given an overwrite flag, multiple remote servers, and specifying security settings.

public void Restore (string file, string databaseName, bool allowOverwrite, Microsoft.AnalysisServices.RestoreLocation[] locations, Microsoft.AnalysisServices.RestoreSecurity security);
member this.Restore : string * string * bool * Microsoft.AnalysisServices.RestoreLocation[] * Microsoft.AnalysisServices.RestoreSecurity -> unit
Public Sub Restore (file As String, databaseName As String, allowOverwrite As Boolean, locations As RestoreLocation(), security As RestoreSecurity)

Parameters

file
String

The name and location of the file to restore.

databaseName
String

The database to restore to.

allowOverwrite
Boolean

true to indicate that the database will be overwritten, if it exists; otherwise, false.

locations
RestoreLocation[]

An array of RestoreLocation objects, specifying multiple remote servers to restore to.

security
RestoreSecurity

A RestoreSecurity object that specifies the security settings for the restore.

Applies to

Restore(String, String, Boolean)

Restores an Analysis Services database from a backup file to the specified database, given an overwrite flag.

public void Restore (string file, string databaseName, bool allowOverwrite);
member this.Restore : string * string * bool -> unit
Public Sub Restore (file As String, databaseName As String, allowOverwrite As Boolean)

Parameters

file
String

The name and location of the file to restore.

databaseName
String

The database to restore to.

allowOverwrite
Boolean

true to indicate that the database will be overwritten, if it exists; otherwise, false.

Applies to

Restore(String, String)

Restores an Analysis Services database from a backup file to the specified database.

public void Restore (string file, string databaseName);
member this.Restore : string * string -> unit
Public Sub Restore (file As String, databaseName As String)

Parameters

file
String

The name and location of the file to restore.

databaseName
String

The database to restore to.

Applies to

Restore(String)

Restores an Analysis Services database from a backup file.

public void Restore (string file);
member this.Restore : string -> unit
Public Sub Restore (file As String)

Parameters

file
String

The name and location of the file to restore.

Applies to

Restore(RestoreInfo)

Restores an Analysis Services database from a backup file, using the options set on the provided RestoreInfo object.

public void Restore (Microsoft.AnalysisServices.RestoreInfo restoreInfo);
member this.Restore : Microsoft.AnalysisServices.RestoreInfo -> unit
Public Sub Restore (restoreInfo As RestoreInfo)

Parameters

restoreInfo
RestoreInfo

The RestoreInfo object containing the options for performing the database restoration.

Applies to

Restore(String, String, Boolean, RestoreLocation[])

Restores an Analysis Services database from a backup file to the specified database, given an overwrite flag and multiple remote servers.

public void Restore (string file, string databaseName, bool allowOverwrite, Microsoft.AnalysisServices.RestoreLocation[] locations);
member this.Restore : string * string * bool * Microsoft.AnalysisServices.RestoreLocation[] -> unit
Public Sub Restore (file As String, databaseName As String, allowOverwrite As Boolean, locations As RestoreLocation())

Parameters

file
String

The name and location of the file to restore.

databaseName
String

The database to restore to.

allowOverwrite
Boolean

true to indicate that the database will be overwritten, if it exists; otherwise, false.

locations
RestoreLocation[]

An array of RestoreLocation objects, specifying multiple remote servers to restore to.

Applies to